getBootstrap(signal?)
Returns context about the current user, their role, the app, and plan limits. Call this once during initialization and cache the result — it does not change mid-session.Role
Usebootstrap.role to conditionally show or hide editing controls:
User
Usebootstrap.user to personalise the UI or pre-fill the current user’s details:
Limits
bootstrap.limits is a key-value map of plan limits for the authenticated user:
| Key | Description |
|---|---|
maxPageSize | Maximum allowed pageSize for listRecords |
maxRecordCount | Maximum records allowed per app on this plan |
rateLimitPerMinute | API requests allowed per minute |
getBootstrap() is a read operation and is allowed during maintenance mode.
getSchema(signal?)
Returns the entity schema for the current app — all entities and their fields. Use this for dynamic form rendering or runtime field discovery.SchemaEntity
SchemaField
Example — dynamic form rendering
getSchema() is a read operation and is allowed during maintenance mode.