cult-of-coders/grapher

Uncaught TypeError: Cannot read property 'setConfig' of undefined

webface opened this issue · 1 comments

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?

nvmd i still had one rouge import