- Source:
Methods
(async, inner) RouteID(length, model)
Creates short and simple IDs for use in URL endpoints while guaranteeing uniqueness.
Parameters:
Name | Type | Description |
---|---|---|
length |
number | Defines the length of the routeID to generate. |
model |
Schema | Enables routeID to check for duplicates against different types of documents. |
- Source: