Sha256: eeca6e9e9abf4f10cee2f37ba4866fb7fdd85e1cfd2770a622ee14d1d8b4e509

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

module Types
  module Inputs
    module Admin
      class <%= class_name %> < Types::BaseInputObject
        argument :ids, [ID], required: false

        def prepare
          if ids
            ['id in (:ids)', { ids: ids }]
          else
            []
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql_scaffold_fan-0.1.2 lib/generators/templates/admin_filter.haml
graphql_scaffold_fan-0.1.1 lib/generators/templates/admin_filter.haml
graphql_scaffold_fan-0.1.0 lib/generators/templates/admin_filter.haml
graphql_scaffold_fan-0.0.3 lib/generators/templates/admin_filter.haml