forked from zauberware/rails-devise-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not make password required for user input
- Loading branch information
1 parent
bcbdb2c
commit da54ce2
Showing
2 changed files
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
# :nocov: | ||
module Types | ||
# Base class for all graphql input objects | ||
class BaseInputObject < GraphQL::Schema::InputObject | ||
end | ||
end | ||
# :nocov: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
# :nocov: | ||
module Types | ||
# Input type for user | ||
class UserInputType < Types::BaseInputObject | ||
description 'Attributes to create a user.' | ||
argument :email, String, 'Email of user', required: true | ||
argument :first_name, String, 'Firstname of user', required: true | ||
argument :last_name, String, 'Lastname of user', required: true | ||
argument :password, String, 'Password of user', required: true | ||
argument :password_confirmation, String, 'Password confirmation', required: true | ||
argument :password, String, 'Password of user', required: false | ||
argument :password_confirmation, String, 'Password confirmation', required: false | ||
end | ||
end | ||
# :nocov: |