Hi ,
I was trying to connect with Sharded DB with Java watch for listening to insert operations, but i was unable to connect to db getting the following error(The $changeStream stage is only supported on replica sets). But in the Mongodb documentation it is said it will work for replica and also sharded(mongos instance) .
Please suggest me how to work with this sharded db watch().