Sha256: 3c966b4e7e1a05162d44a9e2fbd7a49ccb3d9d795f9220c8e54ea3f87d777e40

Contents?: true

Size: 333 Bytes

Versions: 16

Compression:

Stored size: 333 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
graphql_devise-0.12.3 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.12.2 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.12.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.12.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.11.4 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.11.3 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.11.2 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.11.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.11.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.10.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.10.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.9.2 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.9.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.9.0 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.8.1 spec/dummy/app/graphql/mutations/login.rb
graphql_devise-0.8.0 spec/dummy/app/graphql/mutations/login.rb