Allow select (keys) to be altered in triggers (#3146)

Inspect the keys when a query is returned from a trigger and respect the new
value.
This commit is contained in:
Arthur Cinader
2016-12-01 07:04:47 -08:00
committed by Florent Vilmart
parent 4d17bed374
commit 7292fa7f11
2 changed files with 47 additions and 8 deletions

View File

@@ -333,6 +333,10 @@ export function maybeRunQueryTrigger(triggerType, className, restWhere, restOpti
restOptions = restOptions || {};
restOptions.include = jsonQuery.include;
}
if (jsonQuery.keys) {
restOptions = restOptions || {};
restOptions.keys = jsonQuery.keys;
}
return {
restWhere,
restOptions