The following query has text as its third argument.
When the value passed for text is a string that contains a SPACE (e.g.: “space here”) - the query fails with error 500 coming back (when called using REST API) or hangs on GraphStudio.
Query runs OK if the text value contains no space (e.g.: “nospacehere”).
This is TG cloud 3.5.3
EDIT: With SYNTAX V2, this bug is only experienced for REST API calls. In the GraphStudio it is working
CREATE QUERY createProblemCase(VERTEX<Learner> keyLearner, STRING image, STRING text) FOR GRAPH SimplifyPilotADEV SYNTAX V1 {
STRING caseId = gsql_uuid_v4();
DATETIME regDate = NOW();
INSERT INTO ProblemCase (PRIMARY_ID, status, startTime, problemImage, problemText
) VALUES (
caseId, 0, regDate, image, text
);
//Insert StartedA Edge
INSERT INTO StartedA (FROM, TO, startTime) VALUES (
keyLearner,
caseId,
regDate
);
//Increase Learner's total Cases count
keyLearner.totalCases = keyLearner.totalCases + 1;
PRINT caseId;
}