In order for GraphQL to return a result when you ask for field “foo”, you need to define a resolver function for that field. Whatever that function returns will be returned to the client.
Inside that function you can write any code you’d like, including permissions code.
Inside that function you can write any code you’d like, including permissions code.