Open mlanning opened 2 years ago
There is at least one typo in your example:
{ clientCollection: swapBucketsWithLocation" }
is missing an opening quote around swapBucketsWithLocation
.
However, I think this may be a transcription error. I don't use Vue, so can't really comment sensibly on the syntax you have.
In any case, please provide a minimum repro exhibiting the problem, so I can investigate properly. Thank you 🙂
Ah, yes. That's just a transcription error. I've fixed it in the post now. Thanks for pointing it out.
I'll get a working example for you soon, as time permits. I don't think the Vue part matters as much because I'm not even seeing the data being published to minimongo, (using chrome dev tools Meteor extension). In any case, thanks for taking the time. I'll be back with the example soon.
Im getting a similar error, however im not passing a lookup. Is it possible there is an error in the code? Particularly line 56:
for (const [name,value] of Object.entries(options.specificWarnings)) {
if (typeof value !== 'boolean') throw new TunguskaReactiveAggregateError(`"options.specificWarnings.${name}" must be true or false`);
}
Shouldnt it be Object.entries(localOptions.specificWarnings)) ?
I think I have this looking the same as the documentation, but I am getting an error and no data is being published.
I have two mongodb collections named
swapBuckets
andlocations
. I would like to aggregate alocation
property on the swapBucket by looking up the location bylocationId
. This is what the data looks like in the database.I am publishing them in my Meteor app like this...
On the client side ui (Vue.js 2), I have this in the component...
When I look at Meteor dev tools in Chrome, there are no entries in the
SwapBucketsWithLocation
collection. It is created, but it is empty. In the server console, I am getting the following error...It seems like this is a pretty basic aggregation, but I either have something wrong, or there is a bug in the package. Any help or ideas would be greatly appreciated.