@IncId()

New in 2.0

Generate incremental IDs (node-unique)

ID GenerationSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
initInitial value, default 1
stepIncrement step, default 1

Usage

@IncId()

Generate incremental ID (start=1, step=1)

Example:
@IncId()
Output:
1
@IncId(arg0,arg1)

Generate incremental ID with specified start and step

Example:
@IncId(5,2)
Output:
5
← Back to Function Reference