-
Notifications
You must be signed in to change notification settings - Fork 105
Exploring GraphiQL: The In-Browser IDE for GraphQL #338
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
660c427
Add outline for blog post: Exploring GraphiQL: The In-browser IDE for…
18b1d31
Update outlines/exploring-graphiql-the-in-browser-ide-for-graphql.md
shegz101 9013ba9
Update outlines/exploring-graphiql-the-in-browser-ide-for-graphql.md
shegz101 bebf71e
modifed: exploring graphiql the in browser ide for graphql outline
d37dcb4
Merge branch 'develop' of https://github.com/shegz101/tailcallhq.gith…
56ca7e2
Resolved merge conflict in exploring-graphiql-the-in-browser-ide-for-…
ae35a3d
Merge branch 'develop' into develop
shegz101 ac52522
modified-outline-accessing-graphiql-sectione
fe4872f
revamped-content-at-accessing-graphiql-section
757a2c8
outline for:debugging-graphql-queries-with-graphiql
8ef00ca
Merge branch 'tailcallhq:develop' into develop
shegz101 48489a3
Delete outlines/debugging-graphql-queries-with-graphiql.md
shegz101 3a2acef
solved spelling issue in line 42
e83d705
Merge branch 'develop' of https://github.com/shegz101/tailcallhq.gith…
5be5615
modified-the-present-outline-by-merging-debugging-graphql-outline-wit…
c1901c4
added-how-to-add-headers-in-graphiql-section
04eef9d
Merge branch 'develop' into develop
amitksingh1490 d0fad45
fixed-code-style-issue
9a9118a
Merge branches 'develop' and 'develop' of https://github.com/shegz101…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
outlines/exploring-graphiql-the-in-browser-ide-for-graphql.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| # Exploring GraphiQL: The In-Browser IDE for GraphQL | ||
|
|
||
| ## Introduction | ||
|
|
||
| A. Definition and overview of GraphiQL | ||
|
|
||
| ## Why use GraphiQL? | ||
|
|
||
| A. Advantages/benefits of using GraphiQL | ||
|
|
||
| ## Accessing GraphiQL | ||
|
|
||
| For this guide, accessing GraphiQL can be done using any of the methods below: | ||
|
|
||
| A. Simply head over to [https://tailcall.run/playground/](https://tailcall.run/playground/) and give your graphql server url in input. Note, make sure your graphql server allows cors for Tailcall domain | ||
|
|
||
| B. After starting your [GraphQL server](https://tailcall.run/docs/#starting-the-graphql-server), head over to the GraphiQL playground link you get | ||
|
|
||
| ## Setting up GraphiQL | ||
|
|
||
| A. Configuring GraphiQL | ||
|
|
||
| B. Connecting GraphiQL to your Tailcall GraphQL server | ||
|
|
||
| ## How to add Headers in GraphiQL | ||
|
|
||
| A. Access the Headers Panel right beside the variables panel at the bottom | ||
|
|
||
| (add a screenshot of the Headers panel) | ||
|
|
||
| B. Add Custom Headers | ||
|
|
||
| ```json | ||
| # custom headers as JSON | ||
| ``` | ||
|
|
||
| C. Save and Close | ||
|
|
||
| D. Run Your Query | ||
|
|
||
| ```graphql | ||
| # query | ||
| ``` | ||
|
|
||
| ## Exploring the GraphiQL Interface | ||
|
|
||
| A. Exploring the GraphiQL interface and understanding the functions of the various panes. | ||
|
|
||
| B. Explain each of the main parts in the GraphiQL interface | ||
|
|
||
| - Query Editor | ||
| - Variables Editor | ||
| - Response pane | ||
| - Documentation Explorer. | ||
|
|
||
| [add screenshot to display the interface of each of these 4 main interface parts] | ||
|
|
||
| ## Best Practices | ||
|
|
||
| A. Writing clear and well-structured queries. | ||
|
|
||
| B. Using modular queries, i.e. breaking down complex queries into smaller and manageable chunks. | ||
|
|
||
| C. Implement thorough/consistent query testing strategies to detect errors early. | ||
|
|
||
| D. Adding in-line comments in your Query | ||
|
|
||
| ## Alternatives to GraphiQL | ||
|
|
||
| A. Explain that there are also alternatives to GraphiQL. There are other GraphQL playgrounds like Insomnia, Altair client and so on | ||
|
|
||
| (add a screenshot of each of the alternative) | ||
|
|
||
| ## Conclusion | ||
|
|
||
| A. Summary of what we discussed | ||
|
|
||
| B. Final thoughts on the subject | ||
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.
Uh oh!
There was an error while loading. Please reload this page.