mongodb access field value in query code example
Example 1: $in mongodb
{ field: { $in: [, , ... ] } }
Example 2: mongodb filter include all other fields
use $addFields instead of $project
{ field: { $in: [, , ... ] } }
use $addFields instead of $project