Skip to content

Commit

Permalink
Add: basic examples about introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldanielecki committed Jun 18, 2024
1 parent e5a76db commit c77cd8a
Showing 1 changed file with 46 additions and 2 deletions.
48 changes: 46 additions & 2 deletions _code/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Introspection

(show basic introspection)
#### Show basic introspection

```graphql
{
Expand All @@ -12,7 +12,51 @@
}
```

After that, show how `useDisableIntrospection()` works by simply uncommenting it and reloading the page.
#### Show some information about query

```graphql
{
__schema {
queryType {
name
}
}
}
```

#### Show some information about Post

```graphql
{
__type(name: "Post") {
name
}
}
```

#### Show more information about Post

```graphql
{
__type(name: "Post") {
name
kind
}
}
```

#### Show some information about CreateUserInput

```graphql
{
__type(name: "CreateUserInput") {
name
kind
}
}
```

##### After that, show how `useDisableIntrospection()` works by simply uncommenting it and reloading the page.

### Circular Queries

Expand Down

0 comments on commit c77cd8a

Please sign in to comment.