Multiple conditions on a single field #754
Replies: 1 comment
-
It seems that you just need this: filterObject = {
...filterObject,
assignedLga: {
$exists: true,
$in: currentUser.assignedLga,
},
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given this snippet (it's part of a function I use to get conditions for a given User)
I would like to know how I can use multiple queries (
$in
and$exist
) with theassignedState
andassignedLga
fields in the provided code snippet?”Beta Was this translation helpful? Give feedback.
All reactions