Hi,
I'm using tiger graph version 2.5.0 enterprise edition.
I'd like to get all edges connected to a vertex.
Following is the query statement:
INTERPRET QUERY query_test (vertex<address> v) FOR GRAPH test_graph {
SetAccum<EDGE> @@edgeSetAccum;
source = {v};
results=SELECT t FROM source:s-(:e)->:t
ACCUM @@edgeSetAccum += e;
PRINT @@edgeSetAccum;
}
How to send the query by using RESTPP /gsqlserver/interpreted_query?
I tried different ways to set the parameter, for example, v="id1", v=id1, v=("id1"), v=(id1), but get following error:
{"version":{"edition":"enterprise","api":"v2","schema":198},"error":true,"message":"Failed to convert address vertex id for parameter v","code":"GSQL-2500"}