Does minimongo support $all?


#1

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


#2

This is what mongo does:

http://docs.mongodb.org/manual/reference/operator/query/all/


#3

Yes, minimongo supports the $all operator


#4

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.


#5

Yeah ran into the same issue. Fortunately it still works well with the server method backing it up.