'Schema for saving a lot of questions MongoDb

  1. If I have a survey application for child tracking what is the best way to save survey questions in MongoDB? Knowing that survey is divided into stages (about 12 stages), each stage is divided into 4 categories and each category has a number of questions. In other words, what is the best schema model to save such a date contains a lot of questions?

const devCheckListSchema = new mongoose.Schema({ 
          childName: {
            type: String,
            trim: true,
            required: [true, 'Name is required!']
          },
          createdAt: {
            type: Date,
            default: Date.now
          },
          // ...
        }); 
  1. Questions are in the Arabic language is there any way to store them in the MongoDB database in Arabic?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source