Sha256: 14fc872d6989f43ce36aa7bc10045915aaa57f8b0320ec3d9e71d8f12a5f1208

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

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

        def call(mutation)
          mutation.field(:authenticatable, @authenticatable_type, null: false)

          mutation
        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/mutation_field_setter.rb
graphql_devise-0.11.4 lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb
graphql_devise-0.11.3 lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb
graphql_devise-0.11.2 lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb
graphql_devise-0.11.1 lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb
graphql_devise-0.11.0 lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb