summaryrefslogtreecommitdiff
path: root/config/initializers/graphql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/graphql.rb')
-rw-r--r--config/initializers/graphql.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/graphql.rb b/config/initializers/graphql.rb
new file mode 100644
index 00000000000..e653556231d
--- /dev/null
+++ b/config/initializers/graphql.rb
@@ -0,0 +1,4 @@
+# frozen_string_literal: true
+
+GraphQL::Field.accepts_definitions(authorize: GraphQL::Define.assign_metadata_key(:authorize))
+GraphQL::Schema::Field.accepts_definition(:authorize)