Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Adds Code-Exporter to WPGraphiQL #21

Merged
merged 2 commits into from
Oct 14, 2019

Conversation

henrikwirth
Copy link
Contributor

Solves this Issue: #17

Simply adds the graphiql-code-exporter to WPGraphiQl.

I made use of this approach: gatsbyjs/gatsby#17120
For me it seems to work properly, but any reviews and tests will be highly welcome :)

How it looks:
image

@jasonbahl
Copy link
Contributor

@henrikwirth this is sweet! Good stuff! I just returned from 2 weeks out with almost no internet access, so I'm catching up on things. Plan to review this shortly!

@jasonbahl
Copy link
Contributor

@henrikwirth this looks great! I'm going to make one change and have the "language" be "Gatsby" instead of "JavaScript" for this as I think the dropdown makes more sense to be "Gatsby > StaticQuery" vs "JavaScript > StaticQuery"

We can add things like "Apollo > Query Component" examples and "Apollo > Mutation Component" examples, etc too.

Then potentially raw JavaScript examples as well.

@jasonbahl
Copy link
Contributor

I'll push a quick change and merge.

…"JavaScript" as I believe the UI makes much more sense to be "Gatsby > StaticQuery" instead of "JavaScript > StaticQuery"
@jasonbahl jasonbahl merged commit f88a51f into wp-graphql:master Oct 14, 2019
@henrikwirth
Copy link
Contributor Author

Good change 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants