Module: GraphQL::Api

Defined in:
lib/graphql/api.rb,
lib/graphql/api/policy.rb,
lib/graphql/api/schema.rb,
lib/graphql/api/helpers.rb,
lib/graphql/api/version.rb,
lib/graphql/api/query_type.rb,
lib/graphql/api/command_type.rb,
lib/graphql/api/schema_error.rb,
lib/graphql/api/resolvers/field.rb,
lib/graphql/api/unauthorized_exception.rb,
lib/graphql/api/resolvers/command_mutation.rb,
lib/graphql/api/resolvers/model_find_query.rb,
lib/graphql/api/resolvers/model_list_query.rb,
lib/graphql/api/resolvers/query_object_query.rb,
lib/graphql/api/resolvers/model_create_mutation.rb,
lib/graphql/api/resolvers/model_delete_mutation.rb,
lib/graphql/api/resolvers/model_update_mutation.rb

Defined Under Namespace

Modules: Helpers, Resolvers Classes: CommandType, Policy, QueryType, Schema, SchemaError, UnauthorizedException

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.graph(opts = {}) ⇒ Object



12
13
14
# File 'lib/graphql/api.rb', line 12

def self.graph(opts={})
  GraphQL::Api::Schema.new(opts)
end

.schema(opts = {}) ⇒ Object



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

def self.schema(opts={})
  GraphQL::Api::Schema.new(opts).schema
end