Sha256: 8e0f4a5f768829af3457da9376e39239da2f634642d9ced24d3bb68e31148943

Contents?: true

Size: 573 Bytes

Versions: 23

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

<% module_namespacing_when_supported do -%>
module Resolvers
  class <%= resolver_name %> < Ibrain::Resolvers::BaseResolver
    # TODO: define description describe about this mutation
    # description

    # TODO: define return fields
    type Types::Objects::<%= model_name.capitalize %>Type, null: false

    argument :id, ID, required: false, description: 'TODO: describe about this argument'

    # TODO: define resolve method
    def resolve(args)
      <%= model_name.capitalize %>Repository.find args[:id]
    end
  end
end
<% end -%>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ibrain-core-0.3.6.pre.rc.1 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.6 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.5 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.4 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.3.pre.rc.2 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.3.pre.rc.1 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.3 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.2.pre.rc.4 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.2.pre.rc.3 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.2.pre.rc lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.2 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.1 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.3.0 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.9 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.8 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.7 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.6 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.5 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.4 lib/generators/ibrain/graphql/templates/resolver.erb
ibrain-core-0.2.3 lib/generators/ibrain/graphql/templates/resolver.erb