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 outlines the \u003ccode\u003eFieldPath\u003c/code\u003e class in the Google.Cloud.Firestore library, which is used for identifying parts of a document with an immutable path of field names.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFieldPath\u003c/code\u003e class implements \u003ccode\u003eIEquatable<FieldPath>\u003c/code\u003e and \u003ccode\u003eIComparable<FieldPath>\u003c/code\u003e, allowing for equality checks and comparisons between different paths.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a constructor, \u003ccode\u003eFieldPath(String[])\u003c/code\u003e, to create a path from multiple segments, handling segments that may contain dots.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a static property, \u003ccode\u003eDocumentId\u003c/code\u003e, to reference the ID of a document in queries for sorting or filtering.\u003c/p\u003e\n"],["\u003cp\u003eThe ordering between field paths is segment-wise using ordinal string comparisons, which is mainly for canonical orderings.\u003c/p\u003e\n"]]],[],null,[]]