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.11.1 lib/graphql/argument.rb
graphql-0.11.0 lib/graphql/argument.rb
graphql-0.10.9 lib/graphql/argument.rb
graphql-0.10.8 lib/graphql/argument.rb
graphql-0.10.7 lib/graphql/argument.rb
graphql-0.10.6 lib/graphql/argument.rb
graphql-0.10.5 lib/graphql/argument.rb
graphql-0.10.4 lib/graphql/argument.rb
graphql-0.10.3 lib/graphql/argument.rb
graphql-0.10.2 lib/graphql/argument.rb
graphql-0.10.1 lib/graphql/argument.rb
graphql-0.10.0 lib/graphql/argument.rb
graphql-0.9.5 lib/graphql/argument.rb
graphql-0.9.4 lib/graphql/argument.rb
graphql-0.9.3 lib/graphql/argument.rb
graphql-0.9.2 lib/graphql/argument.rb
graphql-0.8.1 lib/graphql/argument.rb
graphql-0.8.0 lib/graphql/argument.rb
graphql-0.7.1 lib/graphql/argument.rb
graphql-0.7.0 lib/graphql/argument.rb