The document this path belongs to.
The full document path so far.
Returns a new document path instance with the passed in key appended
(separated by a dot).
Returns a new document path instance with the passed in index appended
(wrapped by square brackets). Throws if index is less than 0
or not an integer.
Traverses the document with the key path represented by the receiver and returns the corresponding object or value.
Provides an interface to specify a path to a key in a document that you can then call a function on to get the value at the specified key as a specific type. You don't create a
DocumentPathdirectly but obtain one via theat()method of Document.