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 2222Here is how you would implement depth-limiting on your schema.
2323
2424.. code :: python
25+
2526 from graphql import validate, parse
2627 from graphene import ObjectType, Schema, String
2728 from graphene.validation import depth_limit_validator
5859Here is how you would disable introspection for your schema.
5960
6061.. code :: python
62+
6163 from graphql import validate, parse
6264 from graphene import ObjectType, Schema, String
6365 from graphene.validation import DisableIntrospection
@@ -92,6 +94,7 @@ reason. Here is an example query validator that visits field definitions in Grap
9294if any of those fields are blacklisted:
9395
9496.. code :: python
97+
9598 from graphql import GraphQLError
9699 from graphql.language import FieldNode
97100 from graphql.validation import ValidationRule
You can’t perform that action at this time.
0 commit comments