Field types
| Type (app) | type in the API |
JSON value | Notes |
|---|---|---|---|
| Text | text |
string | Numbers and booleans are stored as text. |
| Long text | longText |
string | |
| Number | number |
number | Format (currency, percent, decimals) only affects the app. |
| Date | date |
"2026-03-01", or "2026-03-01T09:30" when the field includes a time |
See below. |
| Checkbox | checkbox |
true / false |
Unchecked reads as false. |
| Single select | singleSelect |
string | Unknown options are added to the field. |
| Multiple select | multiSelect |
array of strings | Unknown options are added. |
| URL | url |
string starting with http:// or https:// |
|
email |
string (an email address) | ||
| Phone | phone |
string | |
| JSON | json |
any JSON value (object, array, …) | Query inside with dot paths. |
| Link to records | link |
record id, or array of ids | One id when the field allows a single record. Ids must exist. |
Empty values (null, '', empty arrays) empty the field; empty fields are left out of
documents. Every document also has _id, _createdAt and _updatedAt (ISO strings).
- Write dates as ISO strings (
"2026-03-01","2026-03-01T09:30:00Z"), as{ "$date": "…" }, or asDateobjects in the SDK. - Fields without a time keep the day. Fields with a time keep minutes and are stored without a
timezone: a timestamp with
Zor an offset is stored as the matching UTC time. - Values read back are strings in that stored form. In filters, compare with any of the forms above: values are converted to the field’s precision first.
Guessed types for new fields
Section titled “Guessed types for new fields”When an insert or update introduces a new field, its type is guessed from the value:
| Value | New field type |
|---|---|
| string up to 200 characters, one line | text |
| longer or multi-line string | longText |
| number | number |
| boolean | checkbox |
Date (SDK) or { "$date": … } |
date with time |
| array of strings | multiSelect |
| anything else (objects, mixed arrays) | json |
To get another type (email, URL, single select, link…), create the field first in the app
or with createCollection.
Made by Faeiz Furqan