@@ -1354,7 +1354,7 @@ MATCH (n)
1354
1354
WHERE EXISTS (
1355
1355
SELECT * FROM tst as t where t.i = n.i
1356
1356
)
1357
- RETURN n; n
1357
+ RETURN n;
1358
1358
n
1359
1359
------------------------------------------------------------------------------
1360
1360
{"id": 281474976710662, "label": "", "properties": {"i": 1, "j": 2, "k": 3}}
@@ -1363,13 +1363,66 @@ RETURN n; n
1363
1363
{"id": 844424930131971, "label": "v", "properties": {"i": 1}}
1364
1364
(4 rows)
1365
1365
1366
+ MATCH (n)
1367
+ WHERE NOT EXISTS (
1368
+ SELECT * FROM tst as t where t.i = n.i
1369
+ )
1370
+ RETURN n;
1371
+ n
1372
+ -----------------------------------------------------------------------------------------------------------------------------------------------------------------
1373
+ {"id": 281474976710657, "label": "", "properties": {"int_key": 1, "map_key": {"key": "value"}, "list_key": [1, 2, 3], "float_key": 3.14, "string_key": "test"}}
1374
+ {"id": 281474976710658, "label": "", "properties": {"lst": [1, null, 3.14, "string", {"key": "value"}, []]}}
1375
+ {"id": 281474976710659, "label": "", "properties": {"name": "orphan"}}
1376
+ {"id": 281474976710660, "label": "", "properties": {"name": "F"}}
1377
+ {"id": 281474976710661, "label": "", "properties": {"name": "T"}}
1378
+ {"id": 844424930131969, "label": "v", "properties": {}}
1379
+ {"id": 844424930131970, "label": "v", "properties": {"i": 0}}
1380
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
1381
+ {"id": 1125899906842626, "label": "v1", "properties": {"id": "middle"}}
1382
+ {"id": 1125899906842627, "label": "v1", "properties": {"id": "end"}}
1383
+ {"id": 1688849860263937, "label": "v2", "properties": {"id": "initial"}}
1384
+ {"id": 1688849860263938, "label": "v2", "properties": {"id": "middle"}}
1385
+ {"id": 1688849860263939, "label": "v2", "properties": {"id": "end"}}
1386
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
1387
+ {"id": 2251799813685250, "label": "v3", "properties": {"id": "middle"}}
1388
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
1389
+ {"id": 2814749767106561, "label": "loop", "properties": {"id": "initial"}}
1390
+ {"id": 3377699720527873, "label": "duplicate", "properties": {}}
1391
+ {"id": 3940649673949185, "label": "other_v", "properties": {}}
1392
+ {"id": 3940649673949186, "label": "other_v", "properties": {}}
1393
+ {"id": 4222124650659841, "label": "opt_match_v", "properties": {"name": "someone"}}
1394
+ {"id": 4222124650659842, "label": "opt_match_v", "properties": {"name": "somebody"}}
1395
+ {"id": 4222124650659843, "label": "opt_match_v", "properties": {"name": "anybody"}}
1396
+ {"id": 4222124650659844, "label": "opt_match_v", "properties": {"name": "nobody"}}
1397
+ (24 rows)
1398
+
1366
1399
--
1367
1400
-- Clean up
1368
1401
--
1369
1402
DROP GRAPH cypher_match CASCADE;
1370
- ERROR: syntax error at or near "n"
1371
- LINE 1: n
1372
- ^
1403
+ NOTICE: drop cascades to 16 other objects
1404
+ DETAIL: drop cascades to table cypher_match._ag_label_vertex
1405
+ drop cascades to table cypher_match._ag_label_edge
1406
+ drop cascades to table cypher_match.v
1407
+ drop cascades to table cypher_match.v1
1408
+ drop cascades to table cypher_match.e1
1409
+ drop cascades to table cypher_match.v2
1410
+ drop cascades to table cypher_match.e2
1411
+ drop cascades to table cypher_match.v3
1412
+ drop cascades to table cypher_match.e3
1413
+ drop cascades to table cypher_match.loop
1414
+ drop cascades to table cypher_match.self
1415
+ drop cascades to table cypher_match.duplicate
1416
+ drop cascades to table cypher_match.dup_edge
1417
+ drop cascades to table cypher_match.other_v
1418
+ drop cascades to table cypher_match.opt_match_v
1419
+ drop cascades to table cypher_match.opt_match_e
1420
+ NOTICE: graph "cypher_match" has been dropped
1421
+ drop_graph
1422
+ ------------
1423
+
1424
+ (1 row)
1425
+
1373
1426
--
1374
1427
-- End
1375
1428
--
0 commit comments