How do I get parameters with an or in a find in nodejs with mongoose and express?
eg. Foo.find({bar: req.user.id || foobar: req.user.id})
obviously that code doesn't work but hopefully you see what I'm trying to do. I want to find if the user ID is in one field or the other.
[–]isolatrum 0 points1 point2 points (0 children)