Sha256: 8909493d725073278c3ff745c7f32a50254e087f15f0fb5dc4e9502b9464901d

Contents?: true

Size: 374 Bytes

Versions: 40

Compression:

Stored size: 374 Bytes

Contents

<% module_namespacing_when_supported do -%>
module Mutations
  class <%= mutation_name %> < BaseMutation
    # TODO: define return fields
    # field :post, Types::PostType, null: false

    # TODO: define arguments
    # argument :name, String, required: true

    # TODO: define resolve method
    # def resolve(name:)
    #   { post: ... }
    # end
  end
end
<% end -%>

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
graphql_cody-1.13.0 lib/generators/graphql/templates/mutation.erb
graphql-1.12.24 lib/generators/graphql/templates/mutation.erb
graphql-1.13.6 lib/generators/graphql/templates/mutation.erb
graphql-1.13.5 lib/generators/graphql/templates/mutation.erb
graphql-1.13.4 lib/generators/graphql/templates/mutation.erb
graphql-1.13.3 lib/generators/graphql/templates/mutation.erb
graphql-1.12.23 lib/generators/graphql/templates/mutation.erb
graphql-1.13.2 lib/generators/graphql/templates/mutation.erb
graphql-1.13.1 lib/generators/graphql/templates/mutation.erb
graphql-1.12.22 lib/generators/graphql/templates/mutation.erb
graphql-1.13.0 lib/generators/graphql/templates/mutation.erb
graphql-1.12.21 lib/generators/graphql/templates/mutation.erb
graphql-1.12.20 lib/generators/graphql/templates/mutation.erb
graphql-1.12.19 lib/generators/graphql/templates/mutation.erb
graphql-1.11.10 lib/generators/graphql/templates/mutation.erb
graphql-1.12.18 lib/generators/graphql/templates/mutation.erb
graphql-1.11.9 lib/generators/graphql/templates/mutation.erb
graphql-1.12.17 lib/generators/graphql/templates/mutation.erb
graphql-1.12.16 lib/generators/graphql/templates/mutation.erb
graphql-1.12.15 lib/generators/graphql/templates/mutation.erb