-
-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
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
[Docs] add note and links for coercing primitive values #408
Conversation
Codecov Report
@@ Coverage Diff @@
## master #408 +/- ##
=======================================
Coverage 99.78% 99.78%
=======================================
Files 8 8
Lines 1385 1385
Branches 167 167
=======================================
Hits 1382 1382
Misses 3 3 Continue to review full report at Codecov.
|
README.md
Outdated
If you wish to auto-convert values which look like numbers, booleans, and other values into their primitive values, you can do one of the following: | ||
|
||
- [Install Express JS middleware to auto-convert request query parameters](https://github.com/xpepermint/query-types) | ||
- [Copy the above MIT licensed coercion code](https://github.com/xpepermint/query-types/blob/master/index.js) directly into your project and modify it as you see fit. This code has been used on some very large projects and gives you the greatest amount of control over your data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not advise people to copypasta code; if they want to use that code, they should depend on the package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - thanks for the feedback.
feb3cb5
to
c2ae487
Compare
This should hopefully lay to rest #91