Class: Stardust::GraphQL::Types::DSL
- Inherits:
-
Object
- Object
- Stardust::GraphQL::Types::DSL
- Defined in:
- lib/stardust/graphql/types/dsl.rb
Class Method Summary collapse
- .input_object(type, &block) ⇒ Object
- .interface(type, &block) ⇒ Object
- .object(type, &block) ⇒ Object
- .scalar(type, &block) ⇒ Object
- .union(type, &block) ⇒ Object
Class Method Details
.input_object(type, &block) ⇒ Object
15 16 17 |
# File 'lib/stardust/graphql/types/dsl.rb', line 15 def input_object(type, &block) Collector.add_type( type, block, InputObject ) end |
.interface(type, &block) ⇒ Object
11 12 13 |
# File 'lib/stardust/graphql/types/dsl.rb', line 11 def interface(type, &block) Collector.add_type( type, block, Interface) end |
.object(type, &block) ⇒ Object
7 8 9 |
# File 'lib/stardust/graphql/types/dsl.rb', line 7 def object(type, &block) Collector.add_type( type, block, Object) end |