May 2018
Intermediate to advanced
470 pages
13h 54m
English
In the Mongoose schema for the game model defined in game.model.js, we will add fields for the
The GameSchema will be defined as follows.
mern-vrgame/server/models/game.model.js:
const GameSchema = new mongoose.Schema({ name: { type: String, trim: true, required: 'Name is required' }, world: { type: String, trim: true, required: 'World image is required' }, clue: { type: String, trim: true }, answerObjects: [VRObjectSchema], ...Read now
Unlock full access