crest/v2/createBody

Creates a string that can be used in a request body.

Removes _rev and _type attributes from the body before stringifying.

Source:
Parameters:
Name Type Description
body object Object to create body from.
Returns:
Stringified body.
Type
string