File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 22
22
Here is how you would implement depth-limiting on your schema.
23
23
24
24
.. code :: python
25
+
25
26
from graphql import validate, parse
26
27
from graphene import ObjectType, Schema, String
27
28
from graphene.validation import depth_limit_validator
58
59
Here is how you would disable introspection for your schema.
59
60
60
61
.. code :: python
62
+
61
63
from graphql import validate, parse
62
64
from graphene import ObjectType, Schema, String
63
65
from graphene.validation import DisableIntrospection
@@ -92,6 +94,7 @@ reason. Here is an example query validator that visits field definitions in Grap
92
94
if any of those fields are blacklisted:
93
95
94
96
.. code :: python
97
+
95
98
from graphql import GraphQLError
96
99
from graphql.language import FieldNode
97
100
from graphql.validation import ValidationRule
You can’t perform that action at this time.
0 commit comments