Replies: 1 comment
-
I don't think there is a reason for this. If somebody was looking to make a contribution this would make a good PR. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
As described in the documentation about the local API for "Auth Operations" it is possible to pass a
req
express object into the local API call, that will be forwarded to all hooks. The documentation about the CRUD operations is missing this option, but for some of the operations it is also possible to pass in areq
object.The "create" operation offers to pass in a
req
object:Unluckily this is only possible for "create", "find", "findVersionByID" or "findById", but not for "delete", "findVersions", "restoreVersion" or "update", e.g.:
Looking at the source, for e.g. "update" there is no
req
property like in "create".Is this intended, that only read operations are allowed to pass in a
req
object, or is this possible a misalignment that can be fixed to allow all operations to pass areq
object?Beta Was this translation helpful? Give feedback.
All reactions