Sha256: dbd4f534fe0302c94887cfa22ab45e4faaa3a677794d2113740b265f41ebb479

Contents?: true

Size: 398 Bytes

Versions: 25

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module GraphqlDevise
  module MountMethod
    module OperationPreparers
      class ResolverTypeSetter
        def initialize(authenticatable_type)
          @authenticatable_type = authenticatable_type
        end

        def call(resolver, **)
          resolver.type(@authenticatable_type, null: false)

          resolver
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
graphql_devise-0.13.4 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.13.3 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.13.2 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.13.1 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.13.0 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb