apache-ageagens-graph

Cannot create node with label `User` in AGCloud


I'm using AGViewer on cloud with AGCloud, and I can not create a Node with Label User.

I tried to create a Node with label User using the following query

Create(u:User {name: 'user1', email: 'user1@email.com', phone: '1234-5678'}) RETURN u

but I got the error: Syntax error at or near "User"

I tried to run the same query for different label it is working fine.

Create(u:Person {name: 'user1', email: 'user1@email.com', phone: '1234-5678'}) RETURN u

Output

Image showing output of Person Node

tell me what is the issue.


Solution

  • This Query works as expected on Apache AGE viewer, perhaps User is a reserved keyword in AGCloud. You could try to find your way around it or simply use another Label name.

    Query on AGE Viewer