<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [FieldPath](./firestore_.fieldpath.md) &gt; [(constructor)](./firestore_.fieldpath._constructor_.md)

## FieldPath.(constructor)

Creates a FieldPath from the provided field names. If more than one field name is provided, the path will point to a nested field in a document.

<b>Signature:</b>

```typescript
constructor(...fieldNames: string[]);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  fieldNames | string\[\] | A list of field names. |

