As the title says.
You can get it using GraphQL.parse.
GraphQL.parse
GraphQL.parase(params[:query]).definitions[0].selections[0].name
If you know a better way, please let me know.
Recommended Posts