Projections/Schema/Object
@global
Create projections over data of all tenants.
The projection 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 @upsertOn(...) @global {
// ...
}
In this case, the User
projection will be available for all tenants.