stack

Home > @infiniteobjects/models > Repository > getAll

Repository.getAll() method

Finds all documents in the collection

Signature:

getAll(limit?: number, offset?: number): Promise<EntityType[]>;

Parameters

Parameter Type Description
limit number (Optional) How many documents we want to return (Defaults to all)
offset number (Optional) Specifies the offset of the returned results

Returns:

Promise<EntityType[]>