Writes data (a map of field values), replacing the document.
Writes data (a map of field values) according to options.