Sha256: 4d5873243d9875fbf4ada1703cb3a0db2e18a5889739b6bee4f165582f810522

Contents?: true

Size: 364 Bytes

Versions: 26

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Mutations
  class Login < GraphqlDevise::Mutations::Login
    field :user, Types::UserType, null: true

    def resolve(email:, password:)
      original_payload = super do |user|
        user.do_something
        user.reload
      end

      original_payload.merge(user: original_payload[:authenticatable])
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.4.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.3.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.2.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.1.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.1.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.0.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-1.0.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.18.2 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.18.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.18.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.17.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.17.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.16.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.15.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.14.3 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.14.2 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.14.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.14.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.13.6 spec/dummy/app/graphql/mutations/login.rb