Repository navigation
docs: document fastify.query() shorthand for RFC 10008 - #7004
Merged
Merged
Conversation
Puppo
marked this pull request as draft
September 1, 2026 06:35
PR fastify#6832 added the QUERY HTTP method and the fastify.query() route shorthand, but Routes.md was not updated alongside the Server.md and Errors.md changes. - List QUERY in the supported methods for the route option. - Add QUERY to the methods for which the schema is validated. - Add the fastify.query() entry in the Shorthand declaration list. - Note the Content-Type requirement (400 FST_ERR_ROUTE_MISSING_CONTENT_TYPE).
Puppo
force-pushed
the
docs/rfc-10008-query-routes
branch
from
September 1, 2026 06:36
f242e97 to
b41ac06
Compare
Puppo
marked this pull request as ready for review
September 1, 2026 06:37
Tony133
added a commit
that referenced
this pull request
Oct 12, 2026
…#7094) Backport 3963a51 from #7004. Co-authored-by: Luca Del Puppo <[email protected]> Co-authored-by: Antonio Tripodi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PR #6832 introduced the QUERY HTTP method (RFC 10008) and the
fastify.query()route shorthand.docs/Reference/Server.mdanddocs/Reference/Errors.mdwere updated as part of that PR, butdocs/Reference/Routes.mdwas not — leaving users without a doc entry for the new shorthand and a stale list of supported methods.What
Four edits to
docs/Reference/Routes.md:QUERYto the methods listed for themethodroute option.QUERYto the methods for which thebodyschema is validated.fastify.query(path, [options], handler)shorthand entry afterfastify.patch.Content-TypeheaderVerification
npx markdownlint-cli2 docs/Reference/Routes.md— no errors.