TinyBase logoTinyBase β

ResultRow

The ResultRow type is the data structure representing a single row in the results of a query.

{[cellId: Id]: ResultCell}

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

Example

import type {ResultRow} from 'tinybase';

export const resultRow: ResultRow = {species: 'dog', color: 'brown'};

Since

v2.0.0