Closed cbilotta closed 7 years ago
I found that I'm supposed to do this to ensure that context is defined :
createApolloServer({ schema, context: {}, });
But it doesn't change a thing... :(
By the way, it works completely fine when I'm connected.
Thanks @iRayzer for opening an issue! 👍
Which version of meteor/apollo
do you use? v0.9.0? That may be related to this line.
Let me publish a patch.
And out of curiosity, tests don't catch that because context
is a global variable in Mocha's BDD interface.
Yes I'm on 0.9.0 :)
Thanks for your help!
0.9.1 published! It should be better @iRayzer!
@carlosbergfeld yeah just noticed that! I was wtf the context
is 😨 :
{ [Function] skip: [Function], only: [Function] }
Yes it works! Thanks a lot!
Hello, I have this error on every request when the user is not authenticated...
[Meteor Apollo Integration] Something bad happened when handling a request on the GraphQL server. Your GraphQL server is not working as expected: [ReferenceError: context is not defined]
What can I do about it ?