Sha256: 5bf9efcb5bfa79f657c19e78112528b3e632d3f19755c52ef50cf8a3b45de9ee

Contents?: true

Size: 399 Bytes

Versions: 25

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

<% module_namespacing_when_supported do -%>
module Resolvers
  class <%= resolver_name %>Aggregate < Ibrain::Resolvers::BaseAggregate
    description 'Define aggregate to count total records for <%= resolver_name %>'
    # define resolve method
    def resolve(args)
      <%= model_name.try(:camelize, :upper) %>Repository.aggregate(args)
    end
  end
end
<% end -%>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ibrain-core-0.5.15 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.13 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.12 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.10 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.9 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.8 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.7 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.6 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.5 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.4 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.3 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.2 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.1 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.5.0 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.4.9 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.4.8 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.4.7 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.4.5 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.4.4 lib/generators/ibrain/graphql/templates/aggregate.erb
ibrain-core-0.4.3 lib/generators/ibrain/graphql/templates/aggregate.erb