Closed mitjade closed 7 years ago
Im trying to integrate this package into an existing graphql express server.
express
users: withAuth((root, args, context) => { ... }),
gives me an error:
error { TypeError: Cannot read property 'length' of null at /.../node_modules/graphql-auth/index.js:42:8 ...
If I call
users: withAuth([], (root, args, context) => { ... }),
It works ok.
hey @mitjade, thanks for submitting, I will take a look and see what I can dig up
a new version 0.0.4 has been pushed and this should be resolved now sorry for the delay!
0.0.4
Im trying to integrate this package into an existing graphql
express
server.gives me an error:
If I call
It works ok.