MongooseParse

import { MongooseParse } from '@appt/mongoose';

Another Appt's interface, but in this case, for Mongoose ODM type parsers. It exposes every parser available by Mongoose.

import { MongooseParse } from '@appt/mongoose';
...
getById(myId){
return this.findOne({
_id: MongooseParse.ObjectId(myId)
})
}
...