Why use pick function to get request params etc? #248
Unanswered
saqib-ahmed1
asked this question in
Q&A
Replies: 1 comment
-
@saqib-ahmed1 There are no security benefits, just makes it easier to compile the object for you, particularly when you are filtering multiple fields. Just in case you're still wondering. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering what is the added benefit of using
pick(req.param, ['filter'])
over directly accessing the variablereq.param.filter
. Is there a security benefit of using it like preventing SQL injections etc?Beta Was this translation helpful? Give feedback.
All reactions