Comments (2)
You can't use the ES6 arrow function here, use a normal function because the this-context is needed.
Am 22.04.2016 um 11:28 schrieb Mạnh Hai Lúa [email protected]:
import {ReactiveAggregate} from 'meteor/jcbernack:reactive-aggregate';
This is my publish function.
Meteor.publish('skills', () => {
return ReactiveAggregate(this, Skills, [
{$match: {status: 'active'}},
{$limit: 10}
]);
});And in the meteor console I got this:
I20160422-16:12:21.076(7)? Exception from sub skills id RE76noLCSJ2LeaYeh TypeError: Object [object global] has no method 'added'
I20160422-16:12:21.078(7)? at packages/jcbernack_reactive-aggregate/aggregate.js:17:1
I20160422-16:12:21.079(7)? at Array.forEach (/home/manhpt/.meteor/packages/es5-shim/.4.5.10.ajfzqv++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
I20160422-16:12:21.080(7)? at update (packages/jcbernack_reactive-aggregate/aggregate.js:15:1)
I20160422-16:12:21.081(7)? at ReactiveAggregate (packages/jcbernack_reactive-aggregate/aggregate.js:47:1)
I20160422-16:12:21.083(7)? at Subscription._handler (imports/api/skills.js:20:12)
I20160422-16:12:21.084(7)? at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1704:12)
I20160422-16:12:21.085(7)? at Subscription._runHandler (packages/ddp-server/livedata_server.js:1026:17)
I20160422-16:12:21.086(7)? at Session._startSubscription (packages/ddp-server/livedata_server.js:845:9)
I20160422-16:12:21.088(7)? at Session.sub (packages/ddp-server/livedata_server.js:617:12)
I20160422-16:12:21.089(7)? at packages/ddp-server/livedata_server.js:551:43My app was fine but the result of subscribe method became empty. The problem happend the same to collection:users Meteor.users.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
from meteor-reactive-aggregate.
Thank you! Problem's solved!
Hope you will update this package soon!
from meteor-reactive-aggregate.
Related Issues (20)
- Is the any chance that the package does not work in test mode ? HOT 2
- Single document published HOT 2
- Cannot set property '_ids' of undefined HOT 4
- Does this method works reactively on server? HOT 2
- $lookup returning empty array HOT 2
- Problem with Methods deletetion HOT 15
- Publish latest version to atmoshphere HOT 1
- Add the ability to stop and restart aggregation HOT 2
- returned with empty HOT 1
- Can't combine reactive publish with plain cursor HOT 5
- Reactive aggregate is not defined HOT 4
- Add one example howto import the ReactiveAggregate module
- Delay between subscription.ready() and data availability HOT 2
- ReactiveAggregate returns Mongo types instead of Meteor
- observeOptions does nothing / can't use limit and skip HOT 2
- ReactiveAggregate not working with $lookup HOT 1
- ReactiveAggregate() + collection.update() -> Error: Expected to find a document to change HOT 1
- Aggregate and filter with full text indexes HOT 1
- Aggregation takes time with large collections HOT 1
- Need for a new version number ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-reactive-aggregate.