-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Installing package in angular2-meteor project does not work.
To reproduce:
- Start with some code from the Socially tutorial
- In Terminal Run:
meteor npm install
andmeteor
- Add package:
meteor add meteorhacks:aggregate
- Add the following code to server\publications\parties:
Meteor.publish('party', function(partyId: string) {
var metrics = new Mongo.Collection('metrics');
var pipeline = [
{$group: {_id: null, resTime: {$sum: "$resTime"}}}
];
var result = metrics.aggregate(pipeline);
return Parties.find(buildQuery.call(this, partyId));
});
Error appears in the terminal:
server/imports/publications/parties.ts (13, 22): Property 'aggregate' does not exist on type 'Collection<{}>'.
Metadata
Metadata
Assignees
Labels
No labels