Sha256: 3d45e1cecc85bfe2ae1e886593380df099a0564607ebead81a0140294d159a52

Contents?: true

Size: 1.46 KB

Versions: 6

Compression:

Stored size: 1.46 KB

Contents

# frozen_string_literal: true

require 'graphql_devise/mutations/base'
require 'graphql_devise/mutations/login'
require 'graphql_devise/mutations/logout'
require 'graphql_devise/mutations/resend_confirmation'
require 'graphql_devise/mutations/send_password_reset'
require 'graphql_devise/mutations/send_password_reset_with_token'
require 'graphql_devise/mutations/sign_up'
require 'graphql_devise/mutations/update_password'
require 'graphql_devise/mutations/update_password_with_token'

module GraphqlDevise
  module DefaultOperations
    MUTATIONS = {
      login:                          { klass: GraphqlDevise::Mutations::Login, authenticatable: true },
      logout:                         { klass: GraphqlDevise::Mutations::Logout, authenticatable: true },
      sign_up:                        { klass: GraphqlDevise::Mutations::SignUp, authenticatable: true },
      update_password:                { klass: GraphqlDevise::Mutations::UpdatePassword, authenticatable: true },
      update_password_with_token:     { klass: GraphqlDevise::Mutations::UpdatePasswordWithToken, authenticatable: true },
      send_password_reset:            { klass: GraphqlDevise::Mutations::SendPasswordReset, authenticatable: false },
      send_password_reset_with_token: { klass: GraphqlDevise::Mutations::SendPasswordResetWithToken, authenticatable: false },
      resend_confirmation:            { klass: GraphqlDevise::Mutations::ResendConfirmation, authenticatable: false }
    }.freeze
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphql_devise-0.16.0 lib/graphql_devise/default_operations/mutations.rb
graphql_devise-0.15.0 lib/graphql_devise/default_operations/mutations.rb
graphql_devise-0.14.3 lib/graphql_devise/default_operations/mutations.rb
graphql_devise-0.14.2 lib/graphql_devise/default_operations/mutations.rb
graphql_devise-0.14.1 lib/graphql_devise/default_operations/mutations.rb
graphql_devise-0.14.0 lib/graphql_devise/default_operations/mutations.rb