April 2020
Intermediate to advanced
716 pages
18h 55m
English
The Course schema—defined in server/models/course.model.js—will have simple fields to store course details, along with with an image, a category, whether the course is published or not, and a reference to the user who created the course. The code defining the course fields are given in the following list with explanations:
name: { type: String, trim: true, required: 'Name is required' },description: { type: String, trim: true },
image: { data: Buffer, contentType: String ...Read now
Unlock full access