Installation
Deprecated
If you are using Fastify >= 5.11.0, you do not need this plugin — HTTP QUERY support (RFC 10008) is built into Fastify core (#6832). Upgrade Fastify instead of installing @thecodepace/fastify-http-query.
sh
npm i @thecodepace/fastify-http-queryRequirements
The plugin requires a Node.js version that lists QUERY in http.METHODS — i.e. Node.js >= 22. On older runtimes, the HTTP parser rejects QUERY requests before they reach the application.
Compatibility
| Plugin version | Fastify version | Notes |
|---|---|---|
0.x | >=5.0.0 <5.11.0 | Deprecated — native QUERY support is built into Fastify >=5.11.0 |
When a Fastify version is out of support, so are the corresponding versions of this plugin. See Fastify's LTS policy for the current support window.
Next steps
- Quick start — register the plugin and define your first
app.query()route. - API reference — the exact symbols exported by the plugin and their TypeScript surface.