Sha256: ea4e4ba11299d71baf591dc9d7a1f13506d5b9b737ed50126f60118c5c645d5e

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
graphql_devise-0.12.0 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.11.4 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.11.3 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.11.2 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.11.1 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb
graphql_devise-0.11.0 lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb