GraphQL

GraphQL Attributes

This document defines attributes for GraphQL.

AttributeTypeDescriptionExamplesStability
graphql.documentstringThe GraphQL document being executed. [1]query findBookById { bookById(id: ?) { name } }Experimental
graphql.operation.namestringThe name of the operation being executed.findBookByIdExperimental
graphql.operation.typestringThe type of the operation being executed.query; mutation; subscriptionExperimental

[1]: 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 mutationExperimental
queryGraphQL queryExperimental
subscriptionGraphQL subscriptionExperimental