Update mutators.js

add field to properties
This commit is contained in:
juliensl 2019-04-03 11:39:26 +02:00 committed by GitHub
parent 1c114cb22c
commit 6a8a83234f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ export const createMutator = async ({
Note: keep newDocument for backwards compatibility
*/
const properties = { data, currentUser, collection, context, document, newDocument: document, schema };
const properties = { data, originalData: clone(data), currentUser, collection, context, document, newDocument: document, schema };
/*