Home > @infiniteobjects/models > Repository > getAll
Finds all documents in the collection
Signature:
getAll(limit?: number, offset?: number): Promise<EntityType[]>;
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[]>