Why is the operation marked as unnamed?
This happen when an operation doesn't have a name, for example:
❌ Missing a name after query
query {
users {
id
email
}
}
❌ Also missing a name
{
users {
id
email
}
}
❌ Unnamed mutation
mutation ($bookId: ID!) {
order(bookId: $bookId) {
id
deliveryDate
}
}
It can be fixed by explicitely setting a name:
✅ This will be shown as query GetUsers
query GetUsers {
users {
id
email
}
}
✅ This will be shown as mutation OrderBook
mutation OrderBook($bookId: ID!) {
order(bookId: $bookId) {
id
deliveryDate
}
}