class Stardust::GraphQL::Types::DSL
Public Class Methods
input_object(type, &block)
click to toggle source
# File lib/stardust/graphql/types/dsl.rb, line 15 def input_object(type, &block) Collector.add_type( type, block, InputObject ) end
interface(type, &block)
click to toggle source
# File lib/stardust/graphql/types/dsl.rb, line 11 def interface(type, &block) Collector.add_type( type, block, Interface) end
object(type, &block)
click to toggle source
# File lib/stardust/graphql/types/dsl.rb, line 7 def object(type, &block) Collector.add_type( type, block, Object) end
scalar(type, &block)
click to toggle source
# File lib/stardust/graphql/types/dsl.rb, line 19 def scalar(type, &block) Collector.add_type( type, block, Scalar ) end
union(type, &block)
click to toggle source
# File lib/stardust/graphql/types/dsl.rb, line 23 def union(type, &block) Collector.add_type( type, block, Union ) end