basalt / search/src / SINGLE_TENANT_SCOPE
Variable: SINGLE_TENANT_SCOPE
> const SINGLE_TENANT_SCOPE: "@single" = '@single'
Defined in: search/src/search.ts:133
The scope every document lands in when the app has no tenancy at all. The driver contract is tenant-keyed, so a single-tenant app still needs one stable key — it just shouldn't have to invent (and remember) it.
A sentinel no tenant id can equal: @ is outside @basaltkit/tenancy's grammar, and a context, explicit or document tenant carrying it is refused with SearchTenantReservedError. It used to be 'default' — a perfectly valid tenant id, so a tenant named default found (and could remove or overwrite) the single-tenant documents. Documents indexed under 'default' by a single-tenant app must be re-keyed or reindexed once (see the changelog for the migration).