In C# it is possible to use the MongoDB driver to define a custom BSONElement Name to each attribute in your data model, in order to shorten its stored name, such as
[BsonElement("n")]
public String Name { get; set; }
Is there any way to accomplish this with mongoose for node.js in a model defined like
var Project = new Schema({
id : ObjectId,
name: String,
});
mongoose.model("Project", Project);
so that the attribute "name" will be stored as "n" and be referenced in code as "name"?
Researching the docs did not work very well on this one. Thanks!