sk what problems, issu…is concerned with how she’ll come across to you, if you’ll treat her differently, or even fire her. There’s no incentive for her to be honest with you, if it’s not what you want to hear. So you’ve got to ask what problems, issues, or questions your team might have — you can’t expect them to come to you.
Now you’ll need a controller to serve the GraphQL queries. Let’s call it
graphql_controller.rb. As you can see below,
GraphqlController inherits from
ApplicationController, thus giving us Pundit capabilities. To make things simple, we have passed in a context with the
pundit -which will give us access to the Pundit
authorize method in the GraphQL handlers. Also, by passing the instance of the controller into the context, we are able to add