You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
Currently only params.query is sent back to server and other fields in params are discarded. I guess this is for avoiding conflicts when people try to send back fields like params.token or params.user which are already used for certain purposes. But it brings some inconveniences when we want to send additional information back to server (mostly used for hooks). Currently we have to put the additional information in query under some self-defined fields (like query.$populate etc.) and then on the server-side we have to use a self-defined before hook to extract the information out of the query object. The whole process seems awkward and unnatural.
So it would be wonderful if we also allow another certain field (could be named as params.options or something) sent back to server together with params.query. The field name (for example, options) is given, so we don't need to worry about conflicts.
The text was updated successfully, but these errors were encountered:
It's a good idea to stick this in a separate key. I'd prefer that it were params.client or something that more explicitly states that those params aren't secure. This would at least save the step of having to create a hook to pull them off the query and stick them on hook.params.
It's a good idea to stick this in a separate key. I'd prefer that it were
params.client or something that more explicitly states that those params
aren't secure.
I'm going to close this as a duplicate of feathersjs/feathers#304 to keep all future discussion there. I'll definitely put this for the next release though.
Currently only
params.query
is sent back to server and other fields inparams
are discarded. I guess this is for avoiding conflicts when people try to send back fields likeparams.token
orparams.user
which are already used for certain purposes. But it brings some inconveniences when we want to send additional information back to server (mostly used for hooks). Currently we have to put the additional information inquery
under some self-defined fields (likequery.$populate
etc.) and then on the server-side we have to use a self-defined before hook to extract the information out of thequery
object. The whole process seems awkward and unnatural.So it would be wonderful if we also allow another certain field (could be named as
params.options
or something) sent back to server together withparams.query
. The field name (for example,options
) is given, so we don't need to worry about conflicts.The text was updated successfully, but these errors were encountered: