Create a Student
Schema using mongoose and populate it with our Eternity students using the array below.
Each student should have an Attending
value which has a default of true
Update Waleed
and Turki
's Attending
value to false
Wait! Mo
is no longer a student, remove him from our database.
Don't forget to run
mongod
,npm init -y
andnpm i mongoose
before starting.
const Students = [
'Abdullah Altwaim',
'Abdulrahman Alrifae',
'Aesha Alshuraim',
'Ahlam Almusallam',
'Ahmed Al-Bahrani',
'Ahmed AlMeshaal',
'Ashwag Alrougui',
'Azzam Alkhaldi',
'Bedour Alrashed',
'Eman Yahya',
'Faisal Alsharari',
'Hanan Alharbi',
'Hazim Alblowi',
'Khalid alarifi',
'Mo Asslahi',
'Mansour Almohsen',
'Munira AlShuhail',
'Munirah almadhi',
'Nada Alotaibi',
'nawaf almansour',
'Norah Alessa',
'Reem AlHarbi',
'sara daghustani',
'Sulaiman Alhabib',
'Turki Almalki',
'Waleed Mastour ']