MongoServerError: Unrecognized expression '$bsonSize'

Hi Team,
Unable to run a query because of the following error.

MongoServerError: Unrecognized expression ‘$bsonSize’

Hi @Vishnu_G_Singhal, and welcome to the MongoDB Community forums! :wave:

Can you please let us know what version of MongoDB you’re running, and show us the query and full error that you’re getting? Are you running the query via the shell or through a language driver?

1 Like