Ordering between field paths is primarily to provide canonical orderings for sets of
paths, for example in a FieldMask. This ordering is performed segment-wise,
using ordinal string comparisons.
Constructors
FieldPath(String[])
public FieldPath(params string[] segments)
Creates a path from multiple segments. Each segment is treated verbatim: it may contain dots, which will lead to the segment being escaped in the
path's string representation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document describes the \u003ccode\u003eFieldPath\u003c/code\u003e class within the Google.Cloud.Firestore library, which represents an immutable path of field names used to identify parts of a document.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFieldPath\u003c/code\u003e class is sealed, implements \u003ccode\u003eIEquatable<FieldPath>\u003c/code\u003e and \u003ccode\u003eIComparable<FieldPath>\u003c/code\u003e, and inherits from \u003ccode\u003eObject\u003c/code\u003e, allowing for comparison and equality checks between field paths.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFieldPath\u003c/code\u003e class offers a constructor that accepts an array of string segments to create a path, treating each segment verbatim and allowing for escaped dots in the string representation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentId\u003c/code\u003e property provides a sentinel \u003ccode\u003eFieldPath\u003c/code\u003e for filtering or sorting queries by the document ID.\u003c/p\u003e\n"],["\u003cp\u003eThe latest documented version is 3.10.0, and there are links available for previous versions, going all the way back to 2.3.1.\u003c/p\u003e\n"]]],[],null,[]]