class Backend::Api::Schema::Mutation
- Backend::Api::Schema::Mutation
- GraphQL::BaseMutation
- Reference
- Object
Included Modules
- GraphQL::Document
- GraphQL::MutationType
- GraphQL::ObjectType
Defined in:
backend/api/schema/mutation.crInstance Method Summary
-
#create_vote(context : Context, input : VoteCreateInput) : Vote | Nil
Creates vote for authenticated user's student
-
#login(username : String, password : String) : LoginPayload | Nil
Logs in as username with credential password
-
#logout(context : Context) : Scalars::UUID | Nil
Logs out of account by revoking token
-
#register_teacher(context : Context, input : TeacherInput) : Teacher
Self register as teacher
- #revoke_token(context : Context, token : Scalars::UUID) : Scalars::UUID
-
#set_voting(context : Context, state : Bool) : Bool | Nil
Sets if students are allowed to vote
-
#start_assignment(context : Context) : Bool | Nil
Starts assignment job of mentors to students
Instance Method Detail
Creates vote for authenticated user's student
def login(username : String, password : String) : LoginPayload | Nil
#
Logs in as username with credential password