Skip to content

Commit

Permalink
Merge pull request #2350 from mozilla/lower-intro-queries
Browse files Browse the repository at this point in the history
fix: lower introspective queries list
  • Loading branch information
tiftran authored Jun 27, 2023
2 parents 5437bc3 + 4e1068d commit 8ec2b52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions normandy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class DisableIntrospectionMiddleware:
def resolve(self, next, root, info, **kwargs):
# introspection fields taken from https://graphql.org/learn/introspection/
if info.field_name.lower() in [
"__Schema",
"__Type",
"__TypeKind",
"__Field",
"__InputValue",
"__EnumValue",
"__Directive",
"__schema",
"__type",
"__typeKind",
"__field",
"__inputValue",
"__enumValue",
"__directive",
]:
return None
return next(root, info, **kwargs)
Expand Down

0 comments on commit 8ec2b52

Please sign in to comment.