Skip to content
New issue

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

Is there a way to use graphql-shield with modules? #297

Closed
pixelmeister opened this issue Jan 28, 2019 · 2 comments
Closed

Is there a way to use graphql-shield with modules? #297

pixelmeister opened this issue Jan 28, 2019 · 2 comments

Comments

@pixelmeister
Copy link

I tried to see if I could use graphql-shield via the middleware options field in graphql-modules, but that did not seem to work. The resolversComposition options seem like a good place to make it work as well, but graphql-shield is really set up to be used as middleware. Any tips on how to make it work? I can alway use the permissions at the top when I instantiate the server, but would rather the permissions be co-located with the resolvers in the module.

@ardatan
Copy link
Collaborator

ardatan commented Feb 22, 2019

#198
Do you have the same issue? If you have, could you try the canary versions in the last comment I shared there?

@ardatan ardatan closed this as completed Apr 2, 2019
@Sytten
Copy link

Sytten commented Apr 19, 2020

Is there a way it could be integrated natively inside the modules. Maybe using the extensions that were added not long ago? @ardatan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants