{NOTE: }
-
Use
NextIdentityForOperation
to increment the latest identity value set on the server for the specified collection in the database. -
The next document that will be created using an identity for the collection will receive the consecutive integer value.
-
In this page:
{NOTE/}
{PANEL: Increment the next identity value }
{CODE:nodejs increment_identity@ClientApi\Operations\Maintenance\Identities\incrementIdentity.js /}
{PANEL/}
{PANEL: Syntax }
{CODE:nodejs syntax@ClientApi\Operations\Maintenance\Identities\incrementIdentity.js /}
Parameter | Type | Description |
---|---|---|
name | string | The collection name for which to increment the identity value. Can be with or without a pipe in the end (e.g. "companies" or "companies|". |
{PANEL/}