cult-of-coders / grapher

Grapher: Meteor Collection Joins + Reactive GraphQL like queries
https://atmospherejs.com/cultofcoders/grapher
MIT License
275 stars 53 forks source link

Uncaught TypeError: Cannot read property 'setConfig' of undefined #442

Closed webface closed 3 years ago

webface commented 3 years ago

Im using this lib for the first time and managed to get a main query with pagination working.


// Make sure you do this before exposing any collections.
Exposure.setConfig({
  firewall(filters, options, userId) {},
  publication: true,
  method: true,
  blocking: false,
});```

vendorQueries.expose({
  firewall(userId, params) {
    if (!userId) {
      throw new Meteor.Error("Not authorized.");
    }
  },
});

This was working fine till I tried to add the easy:search package now I get errors. I've removed the package but Im still getting errors:
`Uncaught TypeError: Cannot read property 'setConfig' of undefined`. ...so Exposure is undefined. How is this possible?
webface commented 3 years ago

nvmd i still had one rouge import