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