Refactor (www): Use nodes
in gatsbyjs.org code instead of edges.node
#21255
Labels
help wanted
Issue with a clear description that the community can help with.
stale?
Issue that may be closed soon due to the original author not responding any more.
type: question or discussion
Issue discussing or asking a question about Gatsby
Summary
Since Gatsby v2.2.0, it's been possible to use
nodes
instead ofedges.node
in GraphQL queries. All instances of:can be replaced with:
The code that iterates over these can also change from
to:
Motivation
Code cleanliness of the gatsby website. Using up-to-date examples in our codebase can help guide people in showing good patterns, even if our docs can't update those examples due to back-compat issues.
The text was updated successfully, but these errors were encountered: