Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Include example queries in the welcome text of the query page #5

Open
proehlen opened this issue Feb 10, 2018 · 2 comments
Open

Include example queries in the welcome text of the query page #5

proehlen opened this issue Feb 10, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@proehlen
Copy link
Member

proehlen commented Feb 10, 2018

Current welcome text displayed on the Query page in GraphiQL is a generic introduction to graphql queries. We could enhance this to display examples using overnode api queries.

@proehlen proehlen added the enhancement New feature or request label Feb 10, 2018
@proehlen
Copy link
Member Author

Looked into this some time ago and I think the answer is providing the graphiql react component wrapped in a vuejs component. There are options for setting the welcome text and other things like styling etc. Can be done as a lazy / dynamic import so that webpack code splits it and it isn't sent to the browser unless the user requests it.

@proehlen
Copy link
Member Author

proehlen commented Mar 12, 2018

This page explains how to import it and set the "query" parameter (the welcome text):
https://github.com/graphql/graphiql

Only difference is that we'd want to:

@dguess dguess self-assigned this Mar 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants