Untitled

mail@pastecode.io avatar
unknown
plain_text
23 days ago
622 B
2
Indexable
Never
CREATE (p:Person {name: 'Joe', age: 21})


CREATE (a:Person {name: 'Joe'})-[:CLASSMATE]->(b:Person {name: 'Andrew'})


CREATE (p:Person {name: 'Joe', age: 21, country: 'Malaysia'})


CREATE (p:Person:Student {name: 'Joe', age: 21})


CREATE (a:Person {name: 'Alice'})
CREATE (b:Person {name: 'Bob'})
CREATE (a)-[:CLASSMATE]->(b)


MATCH (a:Person)-[:CLASSMATE]->(b)
WHERE a.name = 'Joe'
RETURN b.name


MATCH (a:Person {name: 'Joe'})
SET a.age = 21


MATCH (a:Person {name: 'Joe'})
DELETE a


CREATE INDEX FOR (p:Person) ON (p.name)
CREATE CONSTRAINT ON (p:Person) ASSERT p.email IS UNIQUE
Leave a Comment