-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: graphql api page and other incremental improvements #17516
Conversation
# Conflicts: # www/src/data/sidebars/doc-links.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some smaller comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome PR! I left a ton of suggestions on this one, so thanks in advance for going through them. Let me know if you have any questions! I'm also planning to add some info to the contributing docs on API docs vs. conceptual and reference guides.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is amazing! I left a few small suggestions. It's super close. Thank you so much for your work on this, @gillkyle!
Co-Authored-By: Marcy Sutton <[email protected]>
Co-Authored-By: Marcy Sutton <[email protected]>
Description
Initial improvements to the Gatsby GraphQL API's, mostly around querying and using image fragments.
The changes in this PR are to help make GraphQL content easier for people new to Gatsby to grok and discover. Some docs had names that weren't explicit as to their purpose and made finding the page with relevant information difficult. An example of this was the "GraphQL Reference" and "Introducing GraphiQL" docs which were updated to "GraphQL Query Options Reference" and "Running Queries with GraphiQL" respectively.
A GraphQL API page was added to the Gatsby API section to serve as a holistic foundation for GraphQL uses in Gatsby like sourcing data, querying data, using fragments, and linking to guides on advanced uses like schema customization. This page still has plenty to add to it, particularly with querying options like
sort
,filter
, etc as outlined in #15231GraphQL API page
This doesn't resolve all updates to the GraphQL workflow but is a start 👍
Related Issues
Partially addresses points in:
#16981
#15231