We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matchedData(req[, options]) should return a location
The text was updated successfully, but these errors were encountered:
The purpose of matchedData is to return an object which you can directly pass to your own code, but you can definitely pick the data from specific locations. E.g. see the docs https://express-validator.github.io/docs/matched-data-api.html#gathering-data-from-multiple-locations
matchedData
How do you expect the shape of the return to look if it was to include the location?
Sorry, something went wrong.
It should look like this [{ page: '1' , location: 'query'}] location can be query, body, param etc
[{ page: '1' , location: 'query'}]
No branches or pull requests
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
matchedData(req[, options]) should return a location
The text was updated successfully, but these errors were encountered: