Method: GraphQL::StaticValidation::TypeStack#field_definitions

Defined in:
lib/graphql/static_validation/type_stack.rb

#field_definitionsArray<GraphQL::Field> (readonly)

When it enters a field, it's pushed on this stack (useful for nested fields, args). When it exits, it's popped off.

Returns:

  • (Array<GraphQL::Field>)

    fields which have been entered



24
25
26
# File 'lib/graphql/static_validation/type_stack.rb', line 24

def field_definitions
  @field_definitions
end