$nin is not working in aggregation

$nin is not working in aggregation for _id where I used aggregation for latitute and longitude wise search

Hi :wave: @Prakash_Jayaswal,

Welcome to the MongoDB Community forums :sparkles:

The query you posted doesn’t look like a valid MongoDB aggregation query. Are you using a specific driver or product?

In order to better understand your question, it would be helpful if you could provide the following information:

  • A sample document from the collection
  • The version of MongoDB you are using
  • Your complete aggregation query
  • The error message you received after executing the query
  • If possible, your expected output.

Best,
Kushagra