FAQ
You need to use the raw command
{ aggregate : "article" , pipeline : [ { $project ... } , ... ] }
On Sun, Apr 1, 2012 at 7:54 AM, mongo-php wrote:
Hello Group,

does anybody know how to build this example with the PHP Driver:

db.article.aggregate(
{ $project : {
author : 1,
tags : 1,
}},
{ $unwind : "$tags" },
{ $group : {
_id : { tags : 1 },
authors : { $addToSet : "$author" }
}}
);

Thanks in advance für your help.



--
You received this message because you are subscribed to the Google Groups
"mongodb-user" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/mongodb-user/-/PLFmUQsWgQEJ.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mongodb-user?hl=en.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupmongodb-user @
categoriesmongodb
postedApr 1, '12 at 11:58a
activeApr 2, '12 at 4:40a
posts2
users2
websitemongodb.org
irc#mongodb

2 users in discussion

Eliot Horowitz: 1 post Mongo-php: 1 post

People

Translate

site design / logo © 2022 Grokbase