Can any one tell me if minimongo suports $all ?
Im trying to check if 2 strings (ids) are in an array.
Foo.findOne({‘users’:{$all: [‘GnK765ginf96pssuJ’, ‘BFjojowR9rMNWgY8k’]}});
$all allows to check if those 2 strings exist in users
Thanks
Can any one tell me if minimongo suports $all ?
Im trying to check if 2 strings (ids) are in an array.
Foo.findOne({‘users’:{$all: [‘GnK765ginf96pssuJ’, ‘BFjojowR9rMNWgY8k’]}});
$all allows to check if those 2 strings exist in users
Thanks
Yes, minimongo supports the $all
operator
Sadly minimongo doesn’t allow to combine $all
with $elemMatch
like normal mongo does since 2.4.
There’s Error: no $ expressions in $all
notice in browser console when you try to use $stuff
inside of $all
in minimongo.
Yeah ran into the same issue. Fortunately it still works well with the server method backing it up.