Skip to content

Commit 408818a

Browse files
authored
graphql: add note on validation phase (graphprotocol#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

+4
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)