TeachersQuery staff and teacher records — list, search, and get by ID
Access staff and teacher records for your school. All queries require authentication and return only teachers belonging to your assigned school.
query {
teachers ( limit : 20 , offset : 0 ) {
id
username
fullName
empPosition
status
statusText
}
}
Parameter Type Default Description limitInt 20 Maximum number of results offsetInt 0 Number of results to skip (for pagination) searchString — Search across username, firstname, lastname, email, mobileNo, citizenId usernameString — Filter by username (partial match) firstnameString — Filter by first name (partial match) lastnameString — Filter by last name (partial match) emailString — Filter by email (partial match) mobileNoString — Filter by mobile number citizenIdString — Filter by citizen ID statusInt — Filter by status code
query {
teachers ( search : "สมศรี" , limit : 10 ) {
id
fullName
empPosition
teachGroup
}
}
query {
teacher ( id : 42 ) {
id
username
email
fullName
empNo
empPosition
teachGroup
gender
mobileNo
status
statusText
takecare
imageURI
}
}
Field Type Description idInt Unique teacher ID usernameString Username emailString Email address statusInt Status code statusTextString Status in Thai text (computed) typeInt Teacher type titleString Thai title firstnameString First name lastnameString Last name fullNameString Full name with title (computed) mobileNoString Mobile phone number empNoString Employee number empPositionString Employee position teachGroupString Teaching group genderString Gender profilePicString Profile picture filename imageURIString Full profile image URL (computed) takecareString Homeroom class for active semester (computed)
Code Thai English -2 ย้ายออก Transferred out -1 เกษียณ Retired 0 ไม่ใช้งาน Inactive 1 ลาออก Resigned 2 พักงาน On leave 10 ปกติ Active
# Get only active teachers
query {
teachers ( status : 10 , limit : 50 ) {
id
fullName
empPosition
}
}
# Get retired teachers
query {
teachers ( status : -1 ) {
id
fullName
}
}