This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New "Router"
This PR introduces a new "Router" component which consists of a left-sidebar nav that allow for new screens to be added and routed to.
The Router includes 2 initial screens:
GraphiQL Screen
The GraphiQL screen includes the GraphiQL IDE that is pretty similar to the initial release of this repo.
It includes a re-built GraphQL Query Composer (formerly called "Explorer") and an "Auth Switch" that allows you to toggle between executing GraphQL requests as a public (non-authenticated) user and an authenticated user (using the cookie of your WordPress admin user).
Help Screen
There's a new help screen that provides quick access to resources in the WPGraphQL ecosystem. This screen will improve over time, but it's a start that should help make it a bit more convenient to find resources when you need them.
No More Code Exporter
The GraphiQL IDE that currently ships with WPGraphQL includes a "Code Exporter" feature, but at the moment it only includes a few code templates for Gatsby, and they're all outdated since Gatsby Source WordPress has become the official source plugin of Gatsby.
So, at the moment, the code-exporter feature actually provides negative value for users, so we've removed it.
We plan to re-think it and bring it back in the future, with more relevant code templates (Apollo, Relay, Faust.JS, etc), and we want to make it extendable so 3rd parties can provide their own templates that can be used.
Keep an eye out for that in the future.