Skip to main content

DB.INSERT

POST 

To insert one or multiple documents in a collection

Request

Body

    oneOf
    action stringrequired

    Default value: db.insert

    The action name

    collection stringrequired

    The collection name

    data objectrequired

    The object for a single data entry

    captcha string

    A captcha code to be passed if inserting anonymous

Responses

Mutation response

Schema
    data object[]

    Array of documents mutated

Loading...