TinyBase logoTinyBase

ResultTable

The ResultTable type is the data structure representing the results of a query.

{[rowId: Id]: ResultRow}

A ResultTable is typically accessed with the getResultTable method or addResultTableListener method. It is similar to the Table type in the store module, but without schema-specific typing, and is a regular JavaScript object containing individual ResultRow objects, keyed by their Id.

Example

const resultTable: ResultTable = {
  fido: {species: 'dog', color: 'brown'},
  felix: {species: 'cat'},
};