mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
Add schema to properties passed to callbacks
This commit is contained in:
parent
a3523e40e8
commit
0ed46572ad
1 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ export const createMutator = async ({
|
|||
Note: keep newDocument for backwards compatibility
|
||||
|
||||
*/
|
||||
const properties = { data, currentUser, collection, context, document, newDocument: document };
|
||||
const properties = { data, currentUser, collection, context, document, newDocument: document, schema };
|
||||
|
||||
/*
|
||||
|
||||
|
@ -267,7 +267,7 @@ export const updateMutator = async ({
|
|||
Properties
|
||||
|
||||
*/
|
||||
const properties = { data, oldDocument, document, currentUser, collection, context };
|
||||
const properties = { data, oldDocument, document, currentUser, collection, context, schema };
|
||||
|
||||
/*
|
||||
|
||||
|
@ -467,7 +467,7 @@ export const deleteMutator = async ({
|
|||
Properties
|
||||
|
||||
*/
|
||||
const properties = { document, currentUser, collection, context };
|
||||
const properties = { document, currentUser, collection, context, schema };
|
||||
|
||||
/*
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue