getSearchBody #
Available since 2.11.0
Returns the search body.
In the HTTP protocol, the search body will be extracted depending on the verb:
GET: extract thesearchBodyquery string argument and parse itPOST: return the request body
Typically the search body contains keywords used by Kuzzle to perform queries like query, sort, aggregations etc.
Arguments #
getSearchBody (): JSONObjectExample #
const searchBody = request.getSearchBody();