On Dec 8, 12:59 pm, Kristina Chodorow <
krist...@10gen.com> wrote:
> At the moment, you can't. This will be fixed in the next release (scheduled
> for the 17th).
>
> On Tue, Dec 8, 2009 at 2:39 PM, Sam <
lovable...@gmail.com> wrote:
> > Hi all,
>
> > What is the syntax for using the 'distinct' database command along
> > with a query (PHP driver)?
>
> > In the following example, the query parameter doesn't filter any
> > records (distinct runs on entire collection):
>
> > $sns = array('100, '200');
> > $test = $db->command(array('distinct' => 'testcollection', 'key' =>
> > 'testkey', 'query' => array('sn' => array('$in' => $sns))));
>
> > Thanks in advance.
>
> > Sam
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to
mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to