Module: Dry::GraphQL
- Defined in:
- lib/dry/graphql.rb,
lib/dry/graphql/rom.rb,
lib/dry/graphql/types.rb,
lib/dry/graphql/version.rb,
lib/dry/graphql/base_object.rb,
lib/dry/graphql/type_mappings.rb,
lib/dry/graphql/schema_builder.rb
Overview
Module containing GraphQL enhancements
Defined Under Namespace
Modules: GeneratedTypes, ROM, Struct, Types Classes: BaseObject, SchemaBuilder, TypeMappings
Constant Summary collapse
- VERSION =
'0.2.1'
Class Method Summary collapse
Class Method Details
.from(type, name:, **opts) ⇒ Object
24 25 26 |
# File 'lib/dry/graphql.rb', line 24 def from(type, name:, **opts) SchemaBuilder.new(name: name, type: type, options: opts).graphql_type end |
.register_type_mapping(input_type, output_type) ⇒ Object
28 29 30 |
# File 'lib/dry/graphql.rb', line 28 def register_type_mapping(input_type, output_type) TypeMappings.registry.merge!(input_type => output_type) end |