Sha256: 81b903395f5fa0ac25d80e9187fc1ff93de7fbf895d060ce6fab8aa4a45f2144

Contents?: true

Size: 309 Bytes

Versions: 7

Compression:

Stored size: 309 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[:authenticable])
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql_devise-0.7.0 spec/dummy/app/graphql/mutations/sign_up.rb
graphql_devise-0.6.0 spec/dummy/app/graphql/mutations/sign_up.rb
graphql_devise-0.5.0 spec/dummy/app/graphql/mutations/sign_up.rb
graphql_devise-0.4.1 spec/dummy/app/graphql/mutations/sign_up.rb
graphql_devise-0.4.0 spec/dummy/app/graphql/mutations/sign_up.rb
graphql_devise-0.3.0 spec/dummy/app/graphql/mutations/sign_up.rb
graphql_devise-0.2.0 spec/dummy/app/graphql/mutations/sign_up.rb