pojo #
Available since 2.19.3
Returns a plain JavaScript object (POJO) holding the request properties.
The KuzzleRequest object stores its properties under hidden keys, so it cannot be tested against a Koncorde filter. Its POJO can.
The returned object has the following shape:
{
context: { connection, token, user },
deprecations,
error,
id,
input: { action, args, body, controller, jwt, volatile },
internalId,
response: { headers, raw },
result,
status,
timestamp,
}Arguments #
pojo (): JSONObjectExample #
const matchingFilterIds = koncorde.test(request.pojo());