patchOrPut method

Future<void> patchOrPut(
  1. String collection,
  2. dynamic json,
  3. int id
)

Apply JSON merge patch (rfc7396) to the document identified by id or insert new document under specified id.

Implementation

Future<void> patchOrPut(String collection, dynamic json, int id) =>
    patch(collection, json, id, true);