interface UpdateParams {
    args?: QueryArguments;
    query?: string;
    updateClosure: ((mutableDocuments) => void);
}

Properties

args?: QueryArguments

Arguments to use with the query

query?: string

A Ditto query that specifies the documents to update. If this is omitted, then the updateClosure will apply to all documents.

updateClosure: ((mutableDocuments) => void)

A function used to update all the documents

Type declaration

    • (mutableDocuments): void
    • Parameters

      • mutableDocuments: MutableDocument[]

      Returns void