Open full view…

Hi, I wanted to expand fori

Sat, 17 Nov 2018 22:20:02 GMT

nputs. For example ``` input userInput @auth(requires: ADMIN) { id:ID! } ``` Or like this ``` input userInput { id:ID! @auth(requires: ADMIN) } ``` I guess there is no way to do this for SchemaDirectiveVisitor class because, there is no resolve function in the input. So, I cannot access the context to control user roles. Can you advise me ? Thank you.

Sun, 17 Mar 2019 03:47:53 GMT

You can decorate schema with the directive on mutation instead of input