Class: GraphQL::Groups::Schema::GroupField

Inherits:
Schema::Field
  • Object
show all
Defined in:
lib/graphql/groups/schema/group_field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query_method:, **options, &definition_block) ⇒ GroupField

Returns a new instance of GroupField.



9
10
11
12
# File 'lib/graphql/groups/schema/group_field.rb', line 9

def initialize(query_method:, **options, &definition_block)
  @query_method = query_method
  super(**options, &definition_block)
end

Instance Attribute Details

#query_methodObject (readonly)

Returns the value of attribute query_method.



7
8
9
# File 'lib/graphql/groups/schema/group_field.rb', line 7

def query_method
  @query_method
end