How do I access query string values for GET and DELETE requests?
M
Michael
started a topic
over 7 years ago
I am attempting to access the attributes/values sent with a GET or DELETE request in a postFetch or postDelete collection hook. Are these passed in a query string? If so, how would I access he query string in Business Logic?
1 Comment
M
Michael
said
over 7 years ago
You can access the query string from the request object. Rather than request.body, you can reference request.params for the query string parameters.
A reference for the request object can be found at http://devcenter.kinvey.com/titanium/reference/business-logic/reference.html#request
Michael