Sha256: b835c7d9fd3ddbfce5f942c3e217bd8c2595fb2c42152ebafe256641b7292cfc

Contents?: true

Size: 602 Bytes

Versions: 23

Compression:

Stored size: 602 Bytes

Contents

# Used for defined arguments ({Field}, {InputObjectType})
#
# @example defining an argument for a field
#   GraphQL::Field.define do
#     # ...
#     argument :favoriteFood, types.String, "Favorite thing to eat", default_value: "pizza"
#   end
#
# @example defining an input field for an {InputObjectType}
#   GraphQL::InputObjectType.define do
#     input_field :newName, !types.String
#   end
#
class GraphQL::Argument
  include GraphQL::DefinitionHelpers::DefinedByConfig
  defined_by_config :name, :type, :description, :default_value
  attr_accessor :name, :type, :description, :default_value
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
graphql-0.6.2 lib/graphql/argument.rb
graphql-0.6.1 lib/graphql/argument.rb
graphql-0.6.0 lib/graphql/argument.rb