Has anyone here used Meteor methods inside of their Apollo GraphQL resolvers? I have a situation where I have a meteor server also running an Apollo server (per the Apollo docs), and I can access the logged in user via context.userId, or by calling meteor methods on the client, but when I try to call a meteor method inside the Apollo resolver, this.userId returns as null.
Directly updating the Mongo.Collection from my resolvers appear to work fine, but I have some denormalizing hooks attached to one of my collections that call other Meteor methods, and I would prefer to keep those functioning properly, but they require this.userId. This seems odd that I am seeing partial functionality of Meteor’s server side environment, but don’t have access to all of it. Any help would be greatly appreciated. Thanks