Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

how to use $in in c++

Grow Document With Updates Or Make A Separate Collection
(44 lines)
Importing Data to Primary not getting replicated to secondary
(11 lines)
Feb 8, 2012
Sam
Sam
I want to query a match on an element in an embedded object which is
in an array, the doc is like this:

"user": "admin",
"members": [ "user1", "user2" ]

I want to construct a query like this:

QUERY("user" << "admin" << "members" << opIN <<
"sam")

but there is not a label for opIN, only for GT,LT etc.
Is this supported? I really would prefer not to switch back to c from c
++ if possible.

thanks.

Sam





Reply
Tags: user2arrayelementmatch
Messages in this thread
how to use $in in c++
reply Re: how to use $in in c++
(41 lines) Feb 9, 2012 07:59