Skip to main content

Boolean

boolean holds true or false.

ValueExample
true or falsetrue

Settings

This type has no settings of its own, it supports the settings of every property.

Storage

DatabaseStored asNotes
Neo4jnative BOOLEAN(default)
MongoDBboolwith "storage": "document" or the placement role scalar moved to MongoDB
Elasticsearchbooleansearch copy, see below

The search copy is written unless the property or the type sets "search": false. Where a property is stored is explained in placement.

Indices

exact, see indices. Nested properties can be indexed as well, see nested properties.

Limits

No limits besides the databases’ own, see databases.

Example

Schema:

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

Input and output:

{
"data": {
"value": true
}
}