Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

SelectionFields = object

Defined in: src/query/selection.ts:10

The entity fields a query can select. Each maps one-to-one onto a field of Entity.

attributes takes a third form beyond true/false: a map of names, to fetch only those.

optional attributes: boolean | Readonly<Record<string, boolean>>

Defined in: src/query/selection.ts:23

true for every attribute, or a map of names for a subset.


optional attributeSchema: boolean

Defined in: src/query/selection.ts:21

Attribute names and types, without their values.


optional contentType: boolean

Defined in: src/query/selection.ts:18


optional createdAt: boolean

Defined in: src/query/selection.ts:14


optional creationFlags: boolean

Defined in: src/query/selection.ts:17


optional creator: boolean

Defined in: src/query/selection.ts:13


optional expiresAt: boolean

Defined in: src/query/selection.ts:16


optional key: boolean

Defined in: src/query/selection.ts:11


optional owner: boolean

Defined in: src/query/selection.ts:12


optional payload: boolean

Defined in: src/query/selection.ts:19


optional updatedAt: boolean

Defined in: src/query/selection.ts:15