Returns the root
for the current collection or nil
when the current scope is not a collection scope.
This function does not generate a change.
root()
None
Returns the collection root.
This code shows an example usage of root():
// calling .id() will run on the collection root so these are equal
.id() == root().id();
Example return value in JSON format
true