Kuzzle
Documentation
2

ensureProperties #

Checks if the provided properties are present in the payload

A BadRequestError will be thrown if a property is missing.

Copied to clipboard!
ensureProperties (payload: JSONObject, paths: string[]): void | never

Arguments Type Description
payload
JSONObject
Raw payload received in the API action body
paths
string[]
Paths of properties (lodash style)