DataRefModelExtension extension

on

Properties

collectionPath String?
The full collection path of the reference, always ending in "/".
no setter
path String
The full path of the reference. If it ends with "/", it's a path to a collection, otherwise it's a path to a document.
no setter
pathSegments List<String>
The full path segments of the reference, in order, including the document ID if it's not null.
no setter
tableName String?
The table name, i.e. the last element in collection.
no setter

Operators

operator +(DataRefModel other) DataRefModel
Adds two DataRefModel objects. Collection paths must have an odd number of segments.