class Backend::Api::Schema::Query
- Backend::Api::Schema::Query
- GraphQL::BaseQuery
- Reference
- Object
Included Modules
- GraphQL::Document
- GraphQL::ObjectType
- GraphQL::QueryType
Defined in:
backend/api/schema/query.crInstance Method Summary
-
#admins(context : Context) : Array(User) | Nil
All admins
-
#all_students_voted(context : Context) : Bool | Nil
All students voted
-
#config : Config
Public configuration of the API for frontend pre-validation
-
#me(context : Context) : User | Nil
Current authenticated user
-
#ok : Bool
Retuns true
-
#student(context : Context, id : Int32) : Student | Nil
Student by ID
-
#students(context : Context) : Array(Student) | Nil
All students
-
#students_can_vote : Bool
Students can vote
-
#teacher(context : Context, id : Int32) : Teacher | Nil
Teacher by ID
-
#teacher_vote(context : Context, id : Int32) : TeacherVote | Nil
Teacher vote by ID
-
#teacher_votes(context : Context) : Array(TeacherVote) | Nil
All teacher votes
-
#teachers(context : Context) : Array(Teacher)
All teachers
-
#tokens(context : Context) : Array(Token) | Nil
Active tokens of the current user
-
#user(context : Context, id : Int32) : User | Nil
User by ID
- #user_by_username(context : Context, username : String) : User | Nil
-
#users(context : Context) : Array(User) | Nil
All users
-
#vote(context : Context, id : Int32) : Vote | Nil
Vote by ID
-
#votes(context : Context) : Array(Vote) | Nil
All votes