Returns the id of a thing or nil if the thing is not stored.
This function does not generate a change.
thing.id()
None
Returns id of a thing or nil when the thing is not stored.
This code uses
id()to return a collection id:
.id(); // Returns the collection id
Return value in JSON format
1