Class: GraphQL::Schema::TypeExpression

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/type_expression.rb

Instance Method Summary collapse

Constructor Details

#initialize(schema, ast_node) ⇒ TypeExpression

Returns a new instance of TypeExpression.



4
5
6
7
# File 'lib/graphql/schema/type_expression.rb', line 4

def initialize(schema, ast_node)
  @schema = schema
  @ast_node = ast_node
end

Instance Method Details

#typeObject



8
9
10
# File 'lib/graphql/schema/type_expression.rb', line 8

def type
  @type ||= build_type(@schema, @ast_node)
end