[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class FieldPath (7.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.11.0 (latest)](/nodejs/docs/reference/firestore/latest/firestore/fieldpath)\n- [7.9.0](/nodejs/docs/reference/firestore/7.9.0/firestore/fieldpath)\n- [7.7.0](/nodejs/docs/reference/firestore/7.7.0/firestore/fieldpath)\n- [7.6.0](/nodejs/docs/reference/firestore/7.6.0/firestore/fieldpath)\n- [7.5.0](/nodejs/docs/reference/firestore/7.5.0/firestore/fieldpath)\n- [7.4.0](/nodejs/docs/reference/firestore/7.4.0/firestore/fieldpath)\n- [7.3.1](/nodejs/docs/reference/firestore/7.3.1/firestore/fieldpath)\n- [7.2.0](/nodejs/docs/reference/firestore/7.2.0/firestore/fieldpath)\n- [7.1.0](/nodejs/docs/reference/firestore/7.1.0/firestore/fieldpath)\n- [6.4.1](/nodejs/docs/reference/firestore/6.4.1/firestore/fieldpath)\n- [6.3.0](/nodejs/docs/reference/firestore/6.3.0/firestore/fieldpath)\n- [6.0.0](/nodejs/docs/reference/firestore/6.0.0/firestore/fieldpath)\n- [5.0.2](/nodejs/docs/reference/firestore/5.0.2/firestore/fieldpath)\n- [4.15.1](/nodejs/docs/reference/firestore/4.15.1/firestore/fieldpath)\n- [4.14.2](/nodejs/docs/reference/firestore/4.14.2/firestore/fieldpath)\n- [4.9.8](/nodejs/docs/reference/firestore/4.9.8/firestore/fieldpath) \nA dot-separated path for navigating sub-objects (e.g. nested maps) within a document. \n\nInheritance\n-----------\n\nPath\\\u003c[FieldPath](/nodejs/docs/reference/firestore/latest/firestore/fieldpath)\\\u003e \\\u003e FieldPath\n\nPackage\n-------\n\n[@google-cloud/firestore](../overview.html)\n\nConstructors\n------------\n\n### (constructor)(segments)\n\n constructor(...segments: string[]);\n\nConstructs a Firestore Field Path.\n\n**Example** \n\n\n let query = firestore.collection('col');\n let fieldPath = new FieldPath('f.o.o', 'bar');\n\n query.where(fieldPath, '==', 42).get().then(snapshot =\u003e {\n snapshot.forEach(document =\u003e {\n console.log(`Document contains {'f.o.o' : {'bar' : 42}}`);\n });\n });\n\nMethods\n-------\n\n### documentId()\n\n static documentId(): FieldPath;\n\nA special FieldPath value to refer to the ID of a document. It can be used in queries to sort or filter by the document ID.\n\n### isEqual(other)\n\n isEqual(other: FieldPath): boolean;\n\nReturns true if this `FieldPath` is equal to the provided value."]]