I created a client collection
import { Mongo } from "meteor/mongo";
const distinctCustomers = new Mongo.Collection("distinctCustomers");
export default distinctCustomers;
and subscribed to an aggregated Publish. See code below
ReactiveAggregate(
this,
LabRecords,
[matchDeps, GroupByCustomer, custProfile, unwindProfile, projectorProfile],
{
clientCollection: "distinctCustomers"
}
);
I can see in my web console that I was successful with my subscription but doing a command like
distinctCustomers.find().fetch()
cause this error services-list-que.js:18 Uncaught TypeError: Cannot read property 'find' of undefined