type_bridge.attribute.boolean¶
boolean
¶
Boolean attribute type for TypeDB.
Boolean
¶
Bases: Attribute
Boolean attribute type that accepts bool values.
Example
class IsActive(Boolean): pass
class IsVerified(Boolean): pass
Initialize Boolean attribute with a bool value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
bool
|
The boolean value to store |
required |