Make sure query.renderQuery is run in the right environment
parent
bddb1b5da9
commit
d9efb32bb4
|
@ -56,7 +56,8 @@ export function buildQueryFunctions(
|
||||||
},
|
},
|
||||||
// INTERNAL: Used for implementing the { query } syntax in expressions
|
// INTERNAL: Used for implementing the { query } syntax in expressions
|
||||||
$query(query: Query, variables: Record<string, any>) {
|
$query(query: Query, variables: Record<string, any>) {
|
||||||
return system.invokeFunction("query.renderQuery", [
|
return system.localSyscall("system.invokeFunction", [
|
||||||
|
"query.renderQuery",
|
||||||
query,
|
query,
|
||||||
variables,
|
variables,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue