Class: GraphQLSchema

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql_client/schema_patches.rb

Defined Under Namespace

Classes: TypeDefinition

Instance Method Summary collapse

Instance Method Details

#query_rootObject



4
5
6
# File 'lib/graphql_client/schema_patches.rb', line 4

def query_root
  type(query_root_name)
end

#type(name) ⇒ Object



8
9
10
# File 'lib/graphql_client/schema_patches.rb', line 8

def type(name)
  types_by_name.fetch(name)
end