-
Type: Task
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
I'm trying to use the ChangeStream feature with MongoDB 3.6. I'm getting the following results. Please advise what to do:
@client.database.collection(:my_collection).watch #=> works OK! @client.database.watch D, [2019-09-16T01:29:26.909995 #26272] DEBUG -- : MONGODB | localhost:27017 | my_collection.aggregate | STARTED | {"aggregate"=>1, "pipeline"=>[{"$changeStream"=>{"fullDocument"=>"default"}}], "cursor"=>{}, "$clusterTime"=>{"clusterTime"=>#<BSON::Timestamp:0x00000000065d7c70 @seconds=1568564930, @increment=1>, "signature"=>{"hash"=><BSON::Binary:0x53394780 type=g... D, [2019-09-16T01:29:26.922061 #26272] DEBUG -- : MONGODB | localhost:27017 | my_collection.aggregate | FAILED | {aggregate: 1} is not valid for '$changeStream'; a collection is required. (73) | 0.0114606s @client.watch D, [2019-09-16T02:10:08.011629 #26272] DEBUG -- : MONGODB | localhost:27017 | admin.aggregate | STARTED | {"aggregate"=>1, "pipeline"=>[{"$changeStream"=>{"fullDocument"=>"default", "allChangesForCluster"=>true}}], "cursor"=>{}, "$clusterTime"=>{"clusterTime"=>#<BSON::Timestamp:0x0000000005714cd8 @seconds=1568567316, @increment=1>, "signature"=>{"hash"=><... D, [2019-09-16T02:10:08.038161 #26272] DEBUG -- : MONGODB | localhost:27017 | admin.aggregate | FAILED | BSON field '$changeStream.allChangesForCluster' is an unknown field. (40415) | 0.0260418s
```
Mongo::Error::OperationFailure: BSON field '$changeStream.allChangesForCluster' is an unknown field. (40415) (on localhost:27017, attempt 1) (on localhost:27017, attempt 1)