GraphQL

GraphQL Attributes

This document defines attributes for GraphQL.

Attributes:

KeyStabilityValue TypeDescriptionExample Values
graphql.documentDevelopmentstringThe GraphQL document being executed. [1]query findBookById { bookById(id: ?) { name } }
graphql.operation.nameDevelopmentstringThe name of the operation being executed.findBookById
graphql.operation.typeDevelopmentstringThe type of the operation being executed.query; mutation; subscription

[1] graphql.document: The value may be sanitized to exclude sensitive information.


graphql.operation.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
mutationGraphQL mutationDevelopment
queryGraphQL queryDevelopment
subscriptionGraphQL subscriptionDevelopment