Entity
less than a minute
Schema
id
(int
, computed, immutable)
ID of the entity.
module
(string
)
Module identifier of the entity.
Warning
If this module is also defined in a configuration, you must add it as a dependency via"depends_on"
.client
(Entity
, default = ) (optional)
Client of the entity.
fields
(object(schema)
, default = []
) (optional)
List of field attributes.
Schema: generated from the module’s fields during planning phase.
Examples
Invoice entity
[
{
"resource_entity": "invoice",
"resource": {
"module": "invoices",
"fields": {
"dueDate": "2069-06-09",
"positions": [
{
"amount": 10,
"product": {
"id": "${resource_entity.pretzel.id}"
}
}
]
}
}
}
]