Skip to content
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…
Jul 12, 2024
18b1d31
Update outlines/exploring-graphiql-the-in-browser-ide-for-graphql.md
shegz101 Jul 12, 2024
9013ba9
Update outlines/exploring-graphiql-the-in-browser-ide-for-graphql.md
shegz101 Jul 12, 2024
bebf71e
modifed: exploring graphiql the in browser ide for graphql outline
Jul 12, 2024
d37dcb4
Merge branch 'develop' of https://github.com/shegz101/tailcallhq.gith…
Jul 12, 2024
56ca7e2
Resolved merge conflict in exploring-graphiql-the-in-browser-ide-for-…
Jul 12, 2024
ae35a3d
Merge branch 'develop' into develop
shegz101 Jul 12, 2024
ac52522
modified-outline-accessing-graphiql-sectione
Jul 13, 2024
fe4872f
revamped-content-at-accessing-graphiql-section
Jul 13, 2024
757a2c8
outline for:debugging-graphql-queries-with-graphiql
Jul 17, 2024
8ef00ca
Merge branch 'tailcallhq:develop' into develop
shegz101 Jul 17, 2024
48489a3
Delete outlines/debugging-graphql-queries-with-graphiql.md
shegz101 Jul 17, 2024
3a2acef
solved spelling issue in line 42
Jul 18, 2024
e83d705
Merge branch 'develop' of https://github.com/shegz101/tailcallhq.gith…
Jul 18, 2024
5be5615
modified-the-present-outline-by-merging-debugging-graphql-outline-wit…
Jul 21, 2024
c1901c4
added-how-to-add-headers-in-graphiql-section
Jul 21, 2024
04eef9d
Merge branch 'develop' into develop
amitksingh1490 Jul 22, 2024
d0fad45
fixed-code-style-issue
Jul 22, 2024
9a9118a
Merge branches 'develop' and 'develop' of https://github.com/shegz101…
Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions outlines/exploring-graphiql-the-in-browser-ide-for-graphql.md
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