Skip to content

Commit

Permalink
add __directive meta field
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 25, 2024
1 parent e546aac commit 36920bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/Section 4 -- Introspection.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ operation.

## Schema Introspection

The schema introspection system is accessible from the meta-fields `__schema`
and `__type` which are accessible from the type of the root of a query
operation.
The schema introspection system is accessible from the meta-fields `__schema`,
`__type`, and `_directive` which are accessible from the type of the root of a
query operation.

```graphql
__schema: __Schema!
__type(name: String!): __Type
__directive(name: String!): __Directive
```

Like all meta-fields, these are implicit and do not appear in the fields list in
Expand Down

0 comments on commit 36920bb

Please sign in to comment.