我正在使用传递 batchSize changestreamopt.BatchSize。但这不起作用发生此错误:BSON field '$changeStream.batchSize' is an unknown field
示例 API 调用
// coll is *mongo.Collection
// ctx is context
cur, err := coll.Watch(ctx, nil, changestreamopt.BatchSize(1000))
胡说叔叔
相关分类