cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the name of the respective mutation or query which calls the resolver

How to get the name of the respective mutation or query which calls the resolver

I have two mutation which maps to same resolver class. I need to differentiate between both mutations. So in-order to do that, I am looking for a functionality to fetch the name of the mutation or query in the resolver. Any ideas?

 

1 REPLY 1

Re: How to get the name of the respective mutation or query which calls the resolver

A resolver is a function that's responsible for populating the data for a single field in your schema. Whenever a client queries for a particular field, the resolver for that field fetches the requested data from the appropriate data source. United Healthcare