Skip to main content

payload

Function payload 

Source
pub fn payload(
    raw: RawDoc,
    upserts: impl IntoIterator<Item = PayloadUpsert>,
) -> Result<RawDoc, PayloadError>
Expand description

Change (update or insert) a key in a Payload of the document, using the provided updates.

ยงErrors

This fails if one of the PayloadIds does not point to a JSON object as its value.