I want it to obtain documents between certain dates, I know that I need to use the $and operator but right now I'm using Querymen, a middleware for MongoDB , I read the documentation but I couldn't find anything related to.
What I'm doing is this:
router.get('/',
  token({ required: true }),
  query({
    after: {
      type: Date,
      paths: ['fecha'],
      operator: '$gte'
    },
    before: {
      type: Date,
      paths: ['fecha'],
      operator: '$lte'
    }
  }),
  index)
So my question is how to use the $and operator
 
    