GSQL Error/Debug Question

Hello could I have some help to understand what is wrong with my below query please. I would like to delete all nodes attached to one particular node d.

INTERPRET QUERY (VERTEX < Date > d) FOR GRAPH my_graph {

StartLogin = {Login.*};
StartEvent = {Event.*};
delete_day = {d};

DELETE s FROM StartLogin:s - (ACCESSED:e) - delete_day;
DELETE s FROM StartEvent:s - (OCCURED:e) - delete_day;

}

My error is (17, 8) Error: VS__1 is a vertex set variable which has not been instantiated before!

Thanks!

Ok this worked when I changed to:

INTERPRET QUERY (VERTEX< Date > d) FOR GRAPH my_graph{

Start = {d};

DELETE t FROM Start:s - (ACCESSED:e) - Login:t;
DELETE t FROM Start:s - (OCCURED:e) - Event:t;

}

Would love to know why!

Because your seed set has to be the first set mentioned in a single hop or multi hop sequence

1 Like