Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.64 KB

File metadata and controls

28 lines (19 loc) · 1.64 KB

GraphQL

GraphQL Attributes

This document defines attributes for GraphQL.

Attributes:

Key Stability Value Type Description Example Values
graphql.document Development string The GraphQL document being executed. [1] query findBookById { bookById(id: ?) { name } }
graphql.operation.name Development string The name of the operation being executed. findBookById
graphql.operation.type Development string The 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.

Value Description Stability
mutation GraphQL mutation Development
query GraphQL query Development
subscription GraphQL subscription Development