Skip to content

Commit

Permalink
Merge #1630
Browse files Browse the repository at this point in the history
1630: Enable limit and offset according to documentation. r=curquiza a=reijovosu

# Pull Request

## Related issue
Fixes #<issue_number>

## What does this PR do?
- Enables limit and offset according to documentation: https://www.meilisearch.com/docs/reference/api/documents

## PR checklist
Please check if your PR fulfills the following requirements:
- [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [ ] Have you read the contributing guidelines?
- [ ] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Reijo Vosu <[email protected]>
  • Loading branch information
meili-bors[bot] and reijovosu authored Feb 14, 2024
2 parents 12dbd46 + cbf832e commit 6d7b99e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ export type RawDocumentAdditionOptions = DocumentOptions & {
export type DocumentsQuery<T = Record<string, any>> = ResourceQuery & {
fields?: Fields<T>
filter?: Filter
limit?: number
offset?: number
}

export type DocumentQuery<T = Record<string, any>> = {
Expand Down

0 comments on commit 6d7b99e

Please sign in to comment.