Query Operation with Operation Name
Learn how querying with the operation name is useful for debugging.
We'll cover the following...
In the last lesson, we learned about our first GraphQL query. We used a shorthand syntax that omits both the query keyword and the query name, but in a production environment, it’s important to include these to avoid ambiguity in our code.
Press + to interact
{pizzas {pizza}}
Operation Type
The operation type, query, mutation, or subscription specifies the sort of operation we want to do. Unless we’re using query shorthand syntax, in which case we can’t offer a name or variable definitions for our process, the operation type ...