Sha256: 11006c002cd9d1424e5719279d58a8db3bec5bdbb858d420b7744ff969685d59

Contents?: true

Size: 311 Bytes

Versions: 16

Compression:

Stored size: 311 Bytes

Contents

module Mutations
  class SignUp < GraphqlDevise::Mutations::SignUp
    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

16 entries across 16 versions & 1 rubygems

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