id

Returns the id of a thing or nil if the thing is not stored.

This function does not generate a change.

Function

thing.id()

Arguments

None

Return value

Returns id of a thing or nil when the thing is not stored.

Example

This code uses id() to return a collection id:

.id();  // Returns the collection id

Return value in JSON format

1