minca
ApiCoreInterfaces

Interface: QueryRecord\<T, I, C\>

Defined in: packages/core/src/query/types.ts:161

A record a query found. Queries only return records this device can read, so body is never null here.

Extends

Type Parameters

Type ParameterDefault type
Tunknown
IAnyIncluded
CComputedValues

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
authorreadonlystringThe key that signed this version, usually an app's session key, not the person: show root or createdBy as the authorOmit.authorpackages/core/src/node/types.ts:272
bodyreadonlyTNever null: a query leaves out records this node can't open-packages/core/src/query/types.ts:166
collectionreadonlystring-Omit.collectionpackages/core/src/node/types.ts:270
computedreadonlyCIts collection's computed fields, derived from what this node holds (packages/core/docs/computed.md). Empty when the collection has none.-packages/core/src/query/types.ts:173
conformsreadonlyboolean | nullWhether the body fits its collection's schema; null when there is none or it can't be opened. A misfit still syncs.Omit.conformspackages/core/src/node/types.ts:294
createdAtreadonlystringWhen it was created, by its creator's clock: for display onlyOmit.createdAtpackages/core/src/node/types.ts:278
createdByreadonlystring | nullThe identity that created the record, when its first version is heldOmit.createdBypackages/core/src/node/types.ts:276
deleted?readonlytrueThis version deletes the record (listed only with includeDeleted)Omit.deletedpackages/core/src/node/types.ts:292
encryptedreadonlyboolean-Omit.encryptedpackages/core/src/node/types.ts:285
includedreadonlyIWhat each include found: records, or a number when it asked for a count. Empty without include.-packages/core/src/query/types.ts:168
issues?readonlyreadonly SchemaIssue[]-Omit.issuespackages/core/src/node/types.ts:295
keyreadonlystringThe record's identity, the same across edits; links point hereOmit.keypackages/core/src/node/types.ts:264
linksreadonlyreadonly Link[]What this record points at; empty when it can't be openedOmit.linkspackages/core/src/node/types.ts:284
reason?readonlystring-Omit.reasonpackages/core/src/node/types.ts:290
recordsOnly?readonlytrueSigned under a note that grants writing records and no more: an app running records as code trusts only versions without itOmit.recordsOnlypackages/core/src/node/types.ts:289
rootreadonlystring | nullThe identity that key was acting for, when its delegation checks outOmit.rootpackages/core/src/node/types.ts:274
seqreadonlynumber0 for the first version, one more for each editOmit.seqpackages/core/src/node/types.ts:268
spacereadonlystring-Omit.spacepackages/core/src/node/types.ts:269
updatedAtreadonlystringWhen this version was written: for display onlyOmit.updatedAtpackages/core/src/node/types.ts:280
verifiedreadonlybooleanSignature, delegation and shape all check outOmit.verifiedpackages/core/src/node/types.ts:287
versionreadonlystringThis version's id: a content hashOmit.versionpackages/core/src/node/types.ts:266

On this page