Skip to content

Instantly share code, notes, and snippets.

@sahilkashyap64
Last active March 21, 2020 19:19
Show Gist options
  • Save sahilkashyap64/277f5f5cad14cad99390f71e84fbe98a to your computer and use it in GitHub Desktop.
Save sahilkashyap64/277f5f5cad14cad99390f71e84fbe98a to your computer and use it in GitHub Desktop.
Attendance collection. It has a teacher and his details and date, teacher has a class which contains his student details and attendance status
{
"_id": {
"$oid": "5e68c7eaa0887971ea6ef54c"
},
"professorclass": [
{
"_id": {
"$oid": "5e678d257cd5a55f2188f02f"
},
"attendance_status": "SES",
"role": "student",
"userType": "StudentUser",
"email": "student1@gmail.com",
"subject": "chem"
},
{
"_id": {
"$oid": "5e679f16ef640474e3fdb572"
},
"attendance_status": "SES",
"role": "student",
"userType": "StudentUser",
"email": "student2@gmail.com",
"subject": "chem"
}
],
"role": "teacher",
"userType": "TeacherUser",
"email": "teacher1@gmail.com",
"subject": "chem",
"attendate": {
"$date": {
"$numberLong": "1583925226000"
}
},
"__v": {
"$numberInt": "0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment