Extends
Methods
(static) cast(value) → {ObjectId}
Casts the specified value to an ObjectId.
Parameters:
Name | Type | Description |
---|---|---|
value |
- Source:
Returns:
- Type
- ObjectId
(static) validate(value) → {boolean}
Determines whether the specified value can be cast to an ObjectId.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
- Source:
Returns:
- Type
- boolean