I am passing batchSize using changestreamopt.BatchSize
.
But this not working this error occurred: BSON field '$changeStream.batchSize' is an unknown field
Sample API call
// coll is *mongo.Collection
// ctx is context
cur, err := coll.Watch(ctx, nil, changestreamopt.BatchSize(1000))