Is there any way to concatenate a string? The documentation mentions the + concat operator, but it doesn’t seem to be allowed:
BEGIN
CREATE QUERY searchSystem(VERTEX<system_> sys, STRING term) FOR GRAPH ty {
f={sys};
songRes = SELECT s FROM
f-(SA:sa)-A:a-(AB:ab)-C:c
WHERE c.serch_col LIKE "%"+term+"%" LIMIT 10;
PRINT songRes;
}
END
The syntax error is saying it needs to be a literal or a variable. When I make it a variable, I still can’t assign it using string manipulation:
BEGIN
CREATE QUERY s() FOR GRAPH ty {
STRING v1 = "asdf";
STRING v2 = "zxcv";
STRING v3 = v1+v2;
PRINT v3;
}
END
Is there any work around for this?