Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose query same field with different values

 let order = await Order.find({
            OrderUserid:req.decoded._id,
            Status: {$in: ['Completed', 'Rejected','Cancel']} //mongoose query same field with different values
        });
 
PREVIOUS NEXT
Tagged: #mongoose #query #field #values
ADD COMMENT
Topic
Name
3+2 =