- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022
01:08 AM
05-24-2022
01:08 AM
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?
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2022
04:51 AM
05-25-2022
04:51 AM
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