I have this schema in mongoose
var data = new Schema({
Plan:String,
Key:String,
Uses:Number,
UsesLeft:Number,
AddedOn:Date,
});
But I want Key to be anything, such as an object, string, or number.
Is there any way to not set a type to it and set it to something later when creating a document?
Such as this
var data = new Schema({
Plan:String,
Key:Anything,
Uses:Number,
UsesLeft:Number,
AddedOn:Date,
});
Thanks