Back to Pocketbase

Function arrayOf

static/jsvm/functions/arrayOf.html

latest570 B
Original Source

Function arrayOf

  • arrayOf<T>(model): T[]

arrayOf creates a placeholder array of the specified models. Usually used to populate DB result into an array of models.

Example:

const records = arrayOf(new Record)$app.recordQuery("articles").limit(10).all(records)Copy

Type Parameters

T

Parameters

model: T

Returns T[]

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc