You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/executing-queries.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,16 +210,17 @@ $server = new StandardServer([
210
210
'validationRules' => $myValidationRules
211
211
]);
212
212
```
213
+
213
214
## Validation Caching
214
215
215
-
Validation is a required step in GraphQL execution, but it can become a performance bottleneck when the same queries are
216
-
run repeatedly — especially in production environments where queries are often static or pre-generated (e.g., persisted
216
+
Validation is a required step in GraphQL execution, but it can become a performance bottleneck when the same queries are
217
+
run repeatedly — especially in production environments where queries are often static or pre-generated (e.g., persisted
217
218
queries or queries emitted by client libraries).
218
219
219
-
To optimize for this, graphql-php supports pluggable validation caching. By implementing the GraphQL\Validator\ValidationCache
220
+
To optimize for this, graphql-php supports pluggable validation caching. By implementing the GraphQL\Validator\ValidationCache
220
221
interface and passing it to GraphQL::executeQuery(), you can skip validation for queries already known to be valid:
221
222
222
-
To optimize for this, `graphql-php` supports pluggable validation caching. By implementing the `GraphQL\Validator\ValidationCache` interface and passing it to
223
+
To optimize for this, `graphql-php` supports pluggable validation caching. By implementing the `GraphQL\Validator\ValidationCache` interface and passing it to
223
224
`GraphQL::executeQuery()`, you can skip validation for queries that are already known to be valid.
0 commit comments