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 .
Storage
| Database | Stored as | Notes |
|---|---|---|
| Neo4j | native BOOLEAN | (default) |
| MongoDB | bool | with "storage": "document" or the placement scalar moved to MongoDB |
| Elasticsearch | boolean | search copy, see below |
The search is written unless the property or the type sets "search": false. Where a property is stored is explained in .
Indices
exact, see . Nested properties can be indexed as well, see nested .
Limits
No limits besides the databases’ own, see .
Example
Schema:
{ "type": "boolean", "index": "exact"}Input and output:
{ "data": { "value": true }}