Add mg invoke returning of result

This commit is contained in:
Josip Mrden 2024-02-28 15:03:55 +01:00
parent 2c0fc680de
commit 11299981df

View File

@ -851,8 +851,8 @@ inline void func_result_set_value(mgp_func_result *res, mgp_value *value, mgp_me
MgInvokeVoid(mgp_func_result_set_value, res, value, memory);
}
inline void execute_query(mgp_graph *graph, const char *query, mgp_memory *memory) {
MgInvokeVoid(mgp_execute_query, graph, memory, query);
inline mgp_query_execution_result *execute_query(mgp_graph *graph, const char *query, mgp_memory *memory) {
return MgInvoke<mgp_query_execution_result *>(mgp_execute_query, graph, memory, query);
}
} // namespace mgp