Sha256: 28f656b7c4031be9d10e43c2b04a653f612be6c732c5e8bce18c9087dd43dabb

Contents?: true

Size: 255 Bytes

Versions: 29

Compression:

Stored size: 255 Bytes

Contents

Types::MutationType = GraphQL::ObjectType.define do
  name "Mutation"

  # TODO: Remove me
  field :testField, types.String do
    description "An example field added by the generator"
    resolve ->(obj, args, ctx) {
      "Hello World!"
    }
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
graphql-1.8.0.pre1 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.6 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.5 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.4 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.3 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.2 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.1 lib/generators/graphql/templates/mutation_type.erb
graphql-1.7.0 lib/generators/graphql/templates/mutation_type.erb
graphql-1.6.8 lib/generators/graphql/templates/mutation_type.erb