UnwindOptions.includeArrayIndex property
Home > @cbnsndwch/zero-contracts > UnwindOptions > includeArrayIndex
UnwindOptions.includeArrayIndex property
Optional: Include array index in output.
Adds a field with the array element's position (zero-based index). The field name is specified by this option.
Signature:
includeArrayIndex?: string;Example
{
includeArrayIndex: 'memberIndex';
}
// Adds field 'memberIndex' with values 0, 1, 2, ...How was this page?