Add operation to write metadata in the blob of a document