Mongoose type schema referencing through axios

In my API I have a model called invoice. Basically this API is for a hotel system
var schema = mongoose.Schema({
invId: String,
dateTime: Date,
username: String,
payMethod: ["CASH", "VISA&quot…