API 参考
    正在准备搜索索引...

    接口 ChangeStreamDocumentKey<TSchema>

    interface ChangeStreamDocumentKey<TSchema extends Document = Document> {
        documentKey: { _id: InferIdType<TSchema>; [shardKey: string]: any };
    }

    类型参数

    层级 (查看层级一览)

    索引

    属性

    documentKey: { _id: InferIdType<TSchema>; [shardKey: string]: any }

    For unsharded collections this contains a single field _id. For sharded collections, this will contain all the components of the shard key