documentId property

FieldPathType documentId

Returns a special sentinel FieldPath to refer to the ID of a document.

It can be used in queries to sort or filter by the document ID.

Implementation

static FieldPathType get documentId {
  return FieldPathType.documentId;
}