Module: HQ::GraphQL
- Defined in:
- lib/hq/graphql.rb,
lib/hq/graphql/types.rb,
lib/hq/graphql/engine.rb,
lib/hq/graphql/inputs.rb,
lib/hq/graphql/object.rb,
lib/hq/graphql/scalars.rb,
lib/hq/graphql/version.rb,
lib/hq/graphql/mutation.rb,
lib/hq/graphql/resource.rb,
lib/hq/graphql/root_query.rb,
lib/hq/graphql/types/uuid.rb,
lib/hq/graphql/input_object.rb,
lib/hq/graphql/types/object.rb,
lib/hq/graphql/root_mutation.rb,
lib/hq/graphql/resource/mutation.rb,
lib/hq/graphql/active_record_extensions.rb
Defined Under Namespace
Modules: ActiveRecordExtensions, Inputs, Resource, Scalars, Types
Classes: Engine, InputObject, Mutation, Object, RootMutation, RootQuery
Constant Summary
collapse
- VERSION =
"1.1.1"
Class Method Summary
collapse
Class Method Details
6
7
8
|
# File 'lib/hq/graphql.rb', line 6
def self.config
@config ||= ::ActiveSupport::OrderedOptions.new
end
|
10
11
12
|
# File 'lib/hq/graphql.rb', line 10
def self.configure(&block)
config.instance_eval(&block)
end
|
.default_scope(scope, context) ⇒ Object
14
15
16
|
# File 'lib/hq/graphql.rb', line 14
def self.default_scope(scope, context)
config.default_scope&.call(scope, context) || scope
end
|
.root_queries ⇒ Object
25
26
27
|
# File 'lib/hq/graphql.rb', line 25
def self.root_queries
@root_queries ||= Set.new
end
|
29
30
31
|
# File 'lib/hq/graphql.rb', line 29
def self.types
@types ||= Set.new
end
|