Not able to add edge attributes

Good afternoon,

I am creating a new database with the developer edition. I haven’t had problems since I tried to add attributes to one of my edge types.

These are my commads:

CREATE VERTEX Tool (PRIMARY_ID toolnameid string, toolname string, toolusage string)
CREATE VERTEX Pub (PRIMARY_ID pubid string, tool string, title string, year int, numcit int, doi string, pmid string, pmcid string, journal string)
CREATE UNDIRECTED EDGE ToolConn (FROM Tool, TO Pub)
CREATE UNDIRECTED EDGE PubConn (FROM Pub, TO Pub, references string, numrefs int)

I am able to run the first three commands without problems, but, with the fourth one, I get this error:

GSQL-Dev > CREATE UNDIRECTED EDGE PubConn (FROM Pub, TO Pub, references string, numrefs int)
Encountered " “references” "references “” at line 1, column 51.
Was expecting one of:
“FILENAME” …
“attribute” …
“password” …
“status” …
“member” …
“role” …
“roles” …
“secret” …
“token” …
“user” …
“transaction” …

Am I doing something wrong?

Thank you very much.

Hi Alba,

“references” is a reserved word and cannot be used as attribute name. Please use another one.

Best,
Renchu

Hi Renchu,

OK, I changed the name and now it’s working.

Thank you very much!

Alba.