8000 fix: lower introspective queries list by tiftran · Pull Request #2350 · mozilla/normandy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

fix: lower introspective queries list #2350

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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