Sha256: cfdf8f6c27523bde16447858c424cf13425fadbb1a732313309a8cc0773c7d8e
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
# Some conveniences for definining arguments. # # Passed into initialization blocks, eg {InputObjectType#initialize}, {Field#initialize} class GraphQL::DefinitionHelpers::ArgumentDefiner include Singleton def build(type:, desc: "", default_value: nil) GraphQL::Argument.new(type: type, description: desc, default_value: default_value) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.5.0 | lib/graph_ql/definition_helpers/argument_definer.rb |
graphql-0.4.0 | lib/graph_ql/definition_helpers/argument_definer.rb |