Skip to content

Commit 408818a

Browse files
authored
graphql: add note on validation phase (#20)
* graphql: add note on validation phase * graphql: Link to the validation spec
1 parent 95fb677 commit 408818a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/en/developer/graphql-api.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ Combine fulltext operators to make more complex filters. With a pretext search o
252252
}
253253
```
254254

255+
### Validation
256+
257+
Graph Node implements [specification-based](https://spec.graphql.org/October2021/#sec-Validation) validation of the GraphQL queries it receives using [graphql-tools-rs](https://github.com/dotansimha/graphql-tools-rs#validation-rules), which is based on the [graphql-js reference implementation](https://github.com/graphql/graphql-js/tree/main/src/validation). Queries which fail a validation rule do so with a standard error - visit the [GraphQL spec](https://spec.graphql.org/October2021/#sec-Validation) to learn more.
258+
255259
## Schema
256260

257261
The schema of your data source--that is, the entity types, values, and relationships that are available to query--are defined through the [GraphQL Interface Definition Langauge (IDL)](https://facebook.github.io/graphql/draft/#sec-Type-System).

0 commit comments

Comments
 (0)