CRUD/Schema/Object
@global
Create crud types over data of all tenants.
The data can be fetched using the empty tenant identified by ""
.
This directive can be useful for system data that is shared across all tenants.
Possible Inconsistencies
Order of events can only be guaranteed within a single tenant. Only use this directive if you are ok with events of tenant A being applied before events of tenant B, even if the event of tenant B was published before the event of tenant A.
Example
type User @crudType @global {
// ...
}
In this case, the User
crud type will be available for all tenants.