Mongodb – Querying between 2 values with a min and max
The context is group discounts where a group of people between 4-7 would get a 5% discount and a group between 8-12 would get 10%. When I query with 5 people. I get [] back using the following query: await…