Hi, I’m experimenting with the ability to write functions and call them.
I have:
CREATE QUERY systemq(VERTEX<system_> sys) FOR GRAPH ty RETURNS (Set<VERTEX<system_>>)
{
Start={sys};
RETURN Start;
}
Creating a query that uses this function and prints the results just shows the primary_id however:
CREATE QUERY systemqPrintFromQ(VERTEX<system_> sys) FOR GRAPH ty
{
PRINT systemq(sys);
}
RESULT:
[
{
"systemq(sys)": [
"WOOL03"
]
}
]
Whereas a query that prints it directly shows the whole object:
CREATE QUERY systemqPrint(VERTEX<system_> sys) FOR GRAPH ty
{
Start={sys};
PRINT Start;
}
RESULT:
[
{
"Start": [
{
"v_id": "WOOL03",
"v_type": "system_",
"attributes": {}
}
]
}
]
```
Is there a way to pass all the parameters back?
Is there a way to do so without adding a mapping step, eg via function composition and lazy evaluation?
Cheers,
Rene