app/graphql/ibrain/auth/mutations/sign_in_mutation.rb in ibrain-auth-0.2.0 vs app/graphql/ibrain/auth/mutations/sign_in_mutation.rb in ibrain-auth-0.2.1
- old
+ new
@@ -4,11 +4,10 @@
class SignInMutation < BaseMutation
field :user, Types::Objects::UserType, null: true
field :token, String, null: true
field :result, Boolean, null: true
- argument :username, String, description: 'Username', required: true
- argument :password, String, description: 'Password', required: true
+ argument :auth, Ibrain::Auth::Config.sign_in_input, required: true
argument :device_token, String, description: 'Device token for notification', required: false
def resolve(args)
# TODO: define logic inside repository
repo = ::AuthRepository.new(nil, normalize_params(args))