Example: Admin
An employee, extended with a map of boolean permission flags.

Extends

name
The person's name.
inherited
age
Age in years.
optional · inherited
active
Whether the person is currently active.
optional · inherited
home
Home postal address.
optional · inherited
nicknames
Other names the person goes by.
of optional · inherited
employeeId
The employee's id within the organization.
inherited
department
The department the employee works in.
optional · inherited
permissions
The permissions this admin holds, as flags. A set of flags is a map rather than a list because a document's attributes hold scalars and nested maps, so this type describes a document as well as a blob.
⟨ * : ⟩

An employee with a map of boolean permission flags. It extends employee, which extends person, so the chain is two levels deep. root is an instance.

This page describes the example/admin type, one of the example schemas. The formal schema is attached as the schemaDefinition in this page's metadata, so the app can show it and create values of this type.

See also

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime