Synopsis简介
dropA当从数据库中删除集合时,会发生dropevent occurs when a collection is dropped from a database.drop事件。
Description描述
_id |
| |
clusterTime | Timestamp |
|
collectionUUID | UUID |
|
lsid |
| |
ns |
| |
ns.coll |
| |
ns.db |
| |
operationType |
| |
txnNumber | NumberLong |
|
wallTime | ISODate |
|
Example示例
The following example illustrates a 以下示例说明了drop event:drop事件:
{
"_id": { <Resume Token> },
"operationType": "drop",
"clusterTime": <Timestamp>,
"wallTime": <ISODate>,
"ns": {
"db": "engineering",
"coll": "users"
}
}
A drop event leads to an invalidate event for change streams opened against its own ns collection.drop事件会导致针对其自己的ns集合打开的更改流的invalidate(无效)事件。