I need some help, I can create the records just fine; but I cannot access specific records within the project array. How can I access a specific record within the projects array. I've tried a number of ways but nothing gets displayed. I'm using Mongoose, with express, passport, and mongo.
var userSchema = new mongoose.Schema({
email: { type: String, unique: true, lowercase: true },
password: String,
profile: {
name: { type: String, default: '' },
location: { type: String, default: '' }
},
project:
[{
test: String,
test1: String,
}],
resetPasswordToken: String,
resetPasswordExpires: Date
});