It’s often very useful to provide inline performance information in a query response, for example when debugging a slow query. The GraphQL specification allows servers to include additional information as part of the response under an extensions key. This is incredibly useful for metadata like tracing information (e.g. in Apollo)
📕FROM:Marc-Andre GirouxProduction Ready GraphQL
It’s interesting to note that the reason this is useful/required is because the client is defining the operation and thus the client shares responsibility for making an efficient query. In REST, the server is responsible (only). But in GraphQL, it’s a coordinated effort so instrumentation needs to be shared so that both participants can optimize what they’re doing.
Josh BeckmanReference
- Notes
- graphql, observability
- Production Ready GraphQL
- Marc-Andre Giroux
-
Permalink to
2020.NTE.013
- Edit
← Previous | Next → |
Note on Production Ready GraphQL via Marc-Andre Giroux | Note on Production Ready GraphQL via Marc-Andre Giroux |
Widgets
Updated: |
v2.16.0-r564-g0057b9ed
|