I am trying reference another object in a model in node,
User = new Schema({ username: { type: String, index: {unique: true}
Here is link to manual @ refs.
Tho You can't use refs at schema design level.