You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

Boolean Property

A Boolean Property can hold a single boolean value, true or false.

fig

JSON Output
{
	"query_time": "0.000897187",
	"result_count": 1,
	"result": {
		"isActive": false,
	},
   	"serialization_time": "0.000051543"
}

Search results for "Boolean Property"

Passive Indexing

Passive indexing is the term for reading a dynamic value from a property (e.g. Function Property or Boolean Property) at application level, and writing it into the database at the end of each transaction, so the value is visible to Cypher. This is important for BooleanProperty, because its getProperty() method returns false instead of null even if there is no actual value in the database. Hence a Cypher query for this property with the value false would not return any results. Structr resolves this by reading all passively indexed properties of an entity, and writing them into the database at the end of a transaction.