Skip to content

Commit

Permalink
docs: Add documentation for increasing Koa qs array limit
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed May 3, 2024
1 parent 8ce807a commit ab7812c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/api/koa.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ Only `params.query` is passed between the server and the client, other parts of

</BlockQuote>

To increase the array limit in query strings, `koa-qs` can be reinitalized with the options for the [qs](https://www.npmjs.com/package/qs) module:

```ts
// app.ts
import koaQs from 'koa-qs'

// ...
koaQs(app, 'extended', {
arrayLimit: 200
})
```

### params.provider

For any [service method call](./services.md) made through REST `params.provider` will be set to `rest`.
Expand Down

0 comments on commit ab7812c

Please sign in to comment.