nestjs / graphql

GraphQL (TypeScript) module for Nest framework (node.js) 🍷
https://docs.nestjs.com/graphql/quick-start
MIT License
1.46k stars 396 forks source link

Possibility: Autorziation to a Schema #909

Closed MasterofDesaster3 closed 4 years ago

MasterofDesaster3 commented 4 years ago

Hello my Graphql/nestjs friends,

We all know that Authorization in Graphql is possible and the access to data for unauthorized person can be denied.

But now i want that the "unauthorized" person is even denied to see the Possibilties in the schema (for example in Graphql playground) or on the Gateway.

My dream would be, that at first the user only sees login and register in the schema than according to that information new Querys and Mutation will be visible in the Schema.

So is it possible to set options of types or whole querys/mutations to invisible according to authorization?

Or has somebody an idea?

Thanks a lot for every help.

kamilmysliwiec commented 4 years ago

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.