Skip to content
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

Integrate graphiql into cynic-querygen-web #57

Closed
obmarg opened this issue Jun 23, 2020 · 5 comments
Closed

Integrate graphiql into cynic-querygen-web #57

obmarg opened this issue Jun 23, 2020 · 5 comments

Comments

@obmarg
Copy link
Owner

obmarg commented Jun 23, 2020

It's functional right now, but would be good if we could write our queries in it, then click a button to write a query.

Reverse engineering functionality would also be great - like you give it rust structs and it spits out a query. Probably quite advanced though...

@obmarg
Copy link
Owner Author

obmarg commented Jun 25, 2020

Looks like it'd be relatively easy to just use code mirror instead of text areas and then pull in https://github.com/graphql/graphiql/tree/main/packages/codemirror-graphql (or possibly pull in the monaco version, though apparently that's still WIP)

@obmarg
Copy link
Owner Author

obmarg commented Jun 25, 2020

Could probably pair this with some UX improvements - ask the user for a schema first (either text area, file upload or point at a URL) then present the query editor.

@obmarg
Copy link
Owner Author

obmarg commented Jul 7, 2020

Most of this work is now done on the querygen-web-revamp branch. Left to do

  • Finish the paste your schema flow.
  • Handle the style of queries that graphiql explorer likes to build
  • Get this building for netlify

@obmarg
Copy link
Owner Author

obmarg commented Jul 7, 2020

A first pass at this merged in #68

@obmarg
Copy link
Owner Author

obmarg commented Jul 27, 2020

#78 tracks all the remaining ideas I have for this, going to call this done & close.

@obmarg obmarg closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant