MongoError: unknown top level operator: $in. If you have a field name that starts with a '$' symbol, consider using $getField or $setField

MongoError: unknown top level operator: $in

You’re likely trying to use the $in operator directly without wrapping the operation correctly to perform either a find or and aggregate.

Can you share the code where you’ve specified an $in?