We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"graphql": "^16.7.1", "graphql-middleware": "^6.1.35", "graphql-shield": "^7.6.5",
Steps to reproduce the behavior, please provide code snippets or a repository:
export const permissions = shield( { Query: { "*": allow, }, Mutation: { "*": allow, }, }, );
I receive this shield error:
"errors": [ { "message": "Not Authorised!", "locations": [ { "line": 2, "column": 3 } ], "path": [ "signIn" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "stacktrace": [ "Error: Not Authorised!", " at normalizeOptions (/Users/user/Documents/GitHub/webrec/node_modules/graphql-shield/cjs/shield.js:27:52)", " at shield (/Users/user/Documents/GitHub/webrec/node_modules/graphql-shield/cjs/shield.js:40:31)", " at Object.<anonymous> (/Users/user/Documents/GitHub/webrec/packages/server/src/permissions/index.ts:4:34)",
so I add debug: true to options and see what's going on, but now shield is working as defined in permissions.
debug: true
I expect the permissions for "*": allow to work.
"*": allow
The permissions only work when I have debug: true in options
The text was updated successfully, but these errors were encountered:
Up, same problem in here! Thank you
Sorry, something went wrong.
you are right T_T
No branches or pull requests
Bug report
Describe the bug
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
I receive this shield error:
so I add
debug: true
to options and see what's going on, but now shield is working as defined in permissions.Expected behavior
I expect the permissions for
"*": allow
to work.Actual behaviour
The permissions only work when I have
debug: true
in optionsThe text was updated successfully, but these errors were encountered: