Not able to enable change stream on Documentdb 4.0 (Mongodb Compatiblity) the database and collection


Hi I am using Documentdb:4.0 (Mongodb Compatiblity)and Using Mongosh: 1.8.0. I was using admin command to enable change stream on a database/collection . I am getting the error as shown below:
MongoServerError: Feature not supported: modifyChangeStreams

I am using db command :db.adminCommand({ modifyChangeStreams: 1, database: “cache_reservas”, collection: “”, enable: true });

So mongo employees also have to use this forum to ask questions?

@Kunal_Shanbagh this seems to be a DocumentDB-specific problem. In general, mongosh and the other tools are not tested with DocumentDB so given that it is well known that it is far from being fully compatible with MongoDB it’s not surprising that some functionality breaks.

In this case, however, the error is a server error, so it might be DocumentDB that in fact does not like the command you are sending it.

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.