We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d45e8 commit 38c081bCopy full SHA for 38c081b
lib/graphql/schema/field.rb
@@ -8,6 +8,8 @@ class Field
8
include GraphQL::Schema::Member::HasArguments
9
include GraphQL::Schema::Member::HasPath
10
11
+ CONTEXT_EXTRAS = [:path]
12
+
13
# @return [String] the GraphQL name for this field, camelized unless `camelize: false` is provided
14
attr_reader :name
15
alias :graphql_name :name
@@ -407,7 +409,6 @@ def apply_scope(value, ctx)
407
409
end
408
410
411
# @param ctx [GraphQL::Query::Context::FieldResolutionContext]
- CONTEXT_EXTRAS = [:path]
412
def fetch_extra(extra_name, ctx)
413
if !CONTEXT_EXTRAS.include?(extra_name) && respond_to?(extra_name)
414
self.public_send(extra_name)
0 commit comments