ObjectIdType

flitter-orm/src/schema/types/ObjectId~ ObjectIdType

Schema type representing a MongoDB ObjectId instance.


Constructor

new ObjectIdType()

Extends

Methods

(static) cast(value) → {ObjectId}

Casts the specified value to an ObjectId.

Parameters:
Name Type Description
value
Returns:
Type
ObjectId

(static) validate(value) → {boolean}

Determines whether the specified value can be cast to an ObjectId.

Parameters:
Name Type Description
value *
Returns:
Type
boolean