How to use ref with MongooseJS