Sha256: f020030bcc3d19031860b20353f357625b1f01758805fd05f1461dc2178d5067

Contents?: true

Size: 346 Bytes

Versions: 13

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Mutations
  class Register < GraphqlDevise::Mutations::Register
    argument :name, String, required: false

    field :user, Types::UserType, null: true

    def resolve(email:, **attrs)
      original_payload = super
      original_payload.merge(user: original_payload[:authenticatable])
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.4.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.3.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.2.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.1.1 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.1.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.0.1 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-1.0.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-0.18.2 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-0.18.1 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-0.18.0 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-0.17.1 spec/dummy/app/graphql/mutations/register.rb
graphql_devise-0.17.0 spec/dummy/app/graphql/mutations/register.rb