Module: Rails::GraphQL::Source::ScopedArguments::ClassMethods

Defined in:
lib/rails/graphql/source/scoped_arguments.rb

Instance Method Summary collapse

Instance Method Details

#attach_fields!(type, fields) ⇒ Object

Hook into the attach fields process to attach the scoped arguments



52
53
54
55
# File 'lib/rails/graphql/source/scoped_arguments.rb', line 52

def attach_fields!(type, fields)
  attach_scoped_arguments_to(fields.values)
  super
end

#scoped_argumentsObject

Return the list of scoped params defined



47
48
49
# File 'lib/rails/graphql/source/scoped_arguments.rb', line 47

def scoped_arguments
  defined?(@scoped_arguments) ? @scoped_arguments : {}
end