SchemaTypes

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

This is an Appt interface for Mongoose ODM schema types. It exposes every type available in Mongoose.

import { SchemaTypes } from '@appt/mongoose';
...
this._id = {
type: SchemaTypes.ObjectId,
require: true
}
...