diff --git a/common/query_functions.ts b/common/query_functions.ts index 822f0fb5..5c734a54 100644 --- a/common/query_functions.ts +++ b/common/query_functions.ts @@ -56,7 +56,8 @@ export function buildQueryFunctions( }, // INTERNAL: Used for implementing the { query } syntax in expressions $query(query: Query, variables: Record) { - return system.invokeFunction("query.renderQuery", [ + return system.localSyscall("system.invokeFunction", [ + "query.renderQuery", query, variables, ]);