Consider the following pseudocode SELECT statements:
SetAccum<STRING> @@set_ids; some_result = SELECT v2t FROM vertextype -(edgetype)- vertex2type:v2t ACCUM @@set_ids += v2t.my_id; interesting_result = SELECT v FROM vertextype:v -(edge2type:edge_w_id)- vertex3type WHERE edge_w_id.my_id IN @@set_ids;
The first query is fine, but I cannot find a viable means to perform the second query. The error I get is in the WHERE clause and it states something like: “no type can be inferred for edge_w_id.my_id” which is unfortunate because its clearly defined in the schema what type it is and if you replace
IN @@set_ids with
== "123" the compiler does recognize this is a string and the query builds without issue.
Are these types of queries possible? Am I missing something from within the documentation?