Skip to content

Commit 1cc83ff

Browse files
authored
Merge pull request #263 from ThibBal/patch-2
Update symfony doc: introspection, maximum_query_complexity and maximum_query_depth
2 parents a0b7f31 + cd6c6d9 commit 1cc83ff

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/symfony-bundle-advanced.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,28 @@ By default, GraphQLite assumes that your firewall name is "main". This is the de
5353
Symfony security bundle so it is likely the value you are using. If for some reason you want to use
5454
another firewall, configure the name with `graphqlite.security.firewall_name`.
5555

56+
## Schema and request security
57+
58+
You can disable the introspection of your GraphQL API (for instance in production mode) using
59+
the `introspection` configuration properties.
60+
61+
```yaml
62+
graphqlite:
63+
security:
64+
introspection: false
65+
```
66+
67+
68+
You can set the maximum complexity and depth of your GraphQL queries using the `maximum_query_complexity`
69+
and `maximum_query_depth` configuration properties
70+
71+
```yaml
72+
graphqlite:
73+
security:
74+
maximum_query_complexity: 314
75+
maximum_query_depth: 42
76+
```
77+
5678
### Login using the "login" mutation
5779

5880
The mutation below will log-in a user:

0 commit comments

Comments
 (0)