Module: GraphQL::Schema::BuildFromDefinition

Defined in:
lib/graphql/schema/build_from_definition.rb

Class Method Summary collapse

Class Method Details

.from_definition(definition_string) ⇒ Object


5
6
7
8
# File 'lib/graphql/schema/build_from_definition.rb', line 5

def from_definition(definition_string)
  document = GraphQL::parse(definition_string)
  Builder.build(document)
end