@@ -788,10 +788,10 @@ mutation {
788788.Cypher
789789[source,cypher]
790790----
791- MERGE (actor:Actor {
791+ MERGE (actor:Actor {
792792 userId: $actorUserId
793793})
794- SET actor += {
794+ SET actor += {
795795 name: $actorName
796796}
797797WITH actor
@@ -826,7 +826,7 @@ mutation {
826826.Cypher
827827[source,cypher]
828828----
829- MATCH (from:Movie {
829+ MATCH (from:Movie {
830830 movieId: $fromMovieId
831831})
832832MATCH (to:Genre)
@@ -864,7 +864,7 @@ mutation {
864864.Cypher
865865[source,cypher]
866866----
867- MATCH (from:Movie {
867+ MATCH (from:Movie {
868868 movieId: $fromMovieId
869869})
870870MATCH (to:Genre)
@@ -902,10 +902,10 @@ mutation {
902902.Cypher
903903[source,cypher]
904904----
905- MATCH (from:Movie {
905+ MATCH (from:Movie {
906906 movieId: $fromMovieId
907907})
908- MATCH (to:Publisher {
908+ MATCH (to:Publisher {
909909 name: $toPublishedBy
910910})
911911MERGE (from)-[:PUBLISHED_BY]->(to)
@@ -941,10 +941,10 @@ mutation {
941941.Cypher
942942[source,cypher]
943943----
944- MATCH (from:Movie {
944+ MATCH (from:Movie {
945945 movieId: $fromMovieId
946946})
947- MATCH (to:Publisher {
947+ MATCH (to:Publisher {
948948 name: $toPublishedBy
949949})
950950MATCH (from)-[r:PUBLISHED_BY]->(to) DELETE r
@@ -980,7 +980,7 @@ mutation {
980980.Cypher
981981[source,cypher]
982982----
983- MATCH (from:User {
983+ MATCH (from:User {
984984 userId: $fromUserId
985985})
986986MATCH (to:User)
@@ -1156,22 +1156,22 @@ CALL {
11561156 WITH userKnowsKnows ORDER BY userKnowsKnows.born ASC, userKnowsKnows.born DESC SKIP $userKnowsKnowsOffset LIMIT $userKnowsKnowsFirst
11571157 RETURN collect(userKnowsKnows {
11581158 .name,
1159- born: {
1159+ born: {
11601160 formatted: toString(userKnowsKnows.born)
11611161 }
11621162 }) AS userKnowsKnows
11631163 }
11641164 RETURN collect(userKnows {
11651165 .name,
1166- born: {
1166+ born: {
11671167 formatted: toString(userKnows.born)
11681168 },
11691169 knows: userKnowsKnows
11701170 }) AS userKnows
11711171}
11721172RETURN user {
11731173 .name,
1174- born: {
1174+ born: {
11751175 formatted: toString(user.born)
11761176 },
11771177 knows: userKnows
@@ -1238,13 +1238,13 @@ mutation {
12381238.Cypher
12391239[source,cypher]
12401240----
1241- MATCH (from:User {
1241+ MATCH (from:User {
12421242 userId: $fromFrom_userId
12431243})
1244- MATCH (to:Movie {
1244+ MATCH (to:Movie {
12451245 movieId: $toTo_movieId
12461246})
1247- CREATE (from)-[createRated:RATED {
1247+ CREATE (from)-[createRated:RATED {
12481248 rating: $createRatedRating
12491249}]->(to)
12501250WITH createRated
@@ -1281,7 +1281,7 @@ mutation {
12811281----
12821282MATCH ()-[updateRated:RATED]->()
12831283WHERE id(updateRated) = toInteger($updateRated_id)
1284- SET updateRated += {
1284+ SET updateRated += {
12851285 rating: $updateRatedRating
12861286}
12871287WITH updateRated
@@ -1316,7 +1316,7 @@ mutation {
13161316.Cypher
13171317[source,cypher]
13181318----
1319- MATCH (from:Genre {
1319+ MATCH (from:Genre {
13201320 name: $fromName
13211321})
13221322MATCH (to:Movie)
@@ -1355,7 +1355,7 @@ mutation {
13551355.Cypher
13561356[source,cypher]
13571357----
1358- CREATE (createUser:User:Person {
1358+ CREATE (createUser:User:Person {
13591359 userId: $createUserUserId
13601360})
13611361WITH createUser
@@ -1395,7 +1395,7 @@ query {
13951395----
13961396MATCH (user:User)
13971397RETURN user {
1398- born: {
1398+ born: {
13991399 formatted: toString(user.born),
14001400 year: user.born.year
14011401 }
@@ -1434,7 +1434,7 @@ MATCH (user:User)
14341434WHERE (user.born.year = $userBornAnd1Year
14351435 AND user.born = datetime($userBornAnd2Formatted))
14361436RETURN user {
1437- born: {
1437+ born: {
14381438 year: user.born.year
14391439 }
14401440} AS User
@@ -1469,10 +1469,10 @@ mutation {
14691469.Cypher
14701470[source,cypher]
14711471----
1472- MERGE (actor:Actor {
1472+ MERGE (actor:Actor {
14731473 userId: $actorUserId
14741474})
1475- SET actor += {
1475+ SET actor += {
14761476 name: $actorName,
14771477 born: datetime($actorBorn.formatted)
14781478}
@@ -1511,7 +1511,7 @@ mutation {
15111511.Cypher
15121512[source,cypher]
15131513----
1514- CREATE (actor:Actor:Person {
1514+ CREATE (actor:Actor:Person {
15151515 userId: $actorUserId,
15161516 name: $actorName,
15171517 born: datetime($actorBorn.formatted)
@@ -1569,10 +1569,10 @@ mutation {
15691569.Cypher
15701570[source,cypher]
15711571----
1572- MERGE (actor:Actor {
1572+ MERGE (actor:Actor {
15731573 userId: $actorUserId
15741574})
1575- SET actor += {
1575+ SET actor += {
15761576 name: $actorName,
15771577 born: datetime($actorBorn)
15781578}
@@ -1633,15 +1633,15 @@ mutation {
16331633.Cypher
16341634[source,cypher]
16351635----
1636- CREATE (actor:Actor:Person {
1636+ CREATE (actor:Actor:Person {
16371637 userId: $actorUserId,
16381638 name: $actorName,
16391639 born: datetime($actorBorn)
16401640})
16411641WITH actor
16421642RETURN actor {
16431643 .name,
1644- born: {
1644+ born: {
16451645 year: actor.born.year,
16461646 month: actor.born.month
16471647 }
@@ -1675,7 +1675,7 @@ mutation{
16751675.Cypher
16761676[source,cypher]
16771677----
1678- MATCH (deleteMovie:Movie {
1678+ MATCH (deleteMovie:Movie {
16791679 movieId: $deleteMovieMovieId
16801680})
16811681WITH deleteMovie AS toDelete, deleteMovie {
0 commit comments