diff --git a/docs/executing-queries.md b/docs/executing-queries.md index 0ee838a..52ff56b 100644 --- a/docs/executing-queries.md +++ b/docs/executing-queries.md @@ -146,3 +146,63 @@ So for example following batch will require single DB request (if user field is } ] ``` + +To enable query batching, pass **queryBatching** option in server config: +```php + true +]); +``` + +# Custom Validation Rules +Before execution, query is validated using set of standard rules defined by GraphQL spec. +It is possible to override standard set of rules globally or per execution. + +Add rules globally: +```php + $myValiationRules +]); +```