API
Enhancements to pagination for GraphQL connections
In addition to edges
, GraphQL connections now have a nodes
field. When you only query node
on edges
, you can simplify the query.
For example:
{ connection { edges { node { fields } } }
can be simplified to:
{ connection { nodes { fields } } }
has been expanded as well to include
and
.
When these fields are used in tandem, it can simplify the shape of return data for pagination.
Previous query format:
Improved query format:
Was this section helpful?