Method: GraphQL::Language::Nodes::Field#initialize

Defined in:
lib/graphql/language/nodes.rb

#initialize(name: nil, arguments: NONE, directives: NONE, selections: NONE, field_alias: nil, line: nil, col: nil, pos: nil, filename: nil, source: nil) ⇒ Field

Returns a new instance of Field.



412
413
414
415
416
417
418
419
420
421
422
423
424
# File 'lib/graphql/language/nodes.rb', line 412

def initialize(name: nil, arguments: NONE, directives: NONE, selections: NONE, field_alias: nil, line: nil, col: nil, pos: nil, filename: nil, source: nil)
  @name = name
  @arguments = arguments || NONE
  @directives = directives || NONE
  @selections = selections || NONE
  # oops, alias is a keyword:
  @alias = field_alias
  @line = line
  @col = col
  @pos = pos
  @filename = filename
  @source = source
end