const writingSchema = {
title: String,
content: String
};
const userSchema = new mongoose.Schema ({
email: String,
password: String,
userID: String,
userName: String,
yourWriting: new Array(writingSchema)
});
Is this the correct format to declare an array inside the object in Node JS