API version: 0.3.0

---

# Boolean

`boolean` holds `true` or `false`.

| Value             | Example |
| ----------------- | ------- |
| `true` or `false` | `true`  |

## Settings

This type has no settings of its own, it supports the [settings of every property](/reference/schemas.md#properties).

## Storage

| Database      | Stored as        | Notes                                                                                                                           |
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Neo4j         | native `BOOLEAN` | (default)                                                                                                                       |
| MongoDB       | `bool`           | with `"storage": "document"` or the [placement role](/reference/schemas/placement.md#placement-roles) `scalar` moved to MongoDB |
| Elasticsearch | `boolean`        | search copy, see below                                                                                                          |

The [search copy](/reference/databases/elasticsearch.md) is written unless the property or the type sets `"search": false`.
Where a property is stored is explained in [placement](/reference/schemas/placement.md).

## Indices

`exact`, see [indices](/reference/indices.md). Nested properties can be indexed as well, see
[nested properties](/reference/indices.md#nested-properties).

## Limits

No limits besides the databases' own, see [databases](/reference/databases.md).

## Example

Schema:

```json
{
  "type": "boolean",
  "index": "exact"
}
```

Input and output:

```json
{
  "data": {
    "value": true
  }
}
```

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [Property types](/reference/schemas/types.md)

Next: [Integer](/reference/schemas/types/integer.md)
