I\'m working on the following document
{
\"_id\" : 12,
\"firstName\" : \"wer\",
\"People\" : [
{
\"uuid\" : \"123\",
\"name\" : \"sugun\
Here is what I tried manually and worked for me:
var rawUsers = Meteor.users.rawCollection();
var aggregateQuery = Meteor.wrapAsync(rawUsers.aggregate, rawUsers);
var pipeline = [
{$match: {}},
{$project: {username: 1, profile: 1}}
];
var result = aggregateQuery(pipeline);
return result;
Read more about Meteor.wrapAsync here