@@ -328,23 +328,38 @@ CREATE ({lst: [1, NULL, 3.14, 'string', {key: 'value'}, []]});
328
328
(0 rows)
329
329
330
330
MATCH (n {string_key: NULL}) RETURN n;
331
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
332
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
331
+ n
332
+ ---
333
+ (0 rows)
334
+
333
335
MATCH (n {string_key: 'wrong value'}) RETURN n ;
334
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
335
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
336
+ n
337
+ ---
338
+ (0 rows)
339
+
336
340
MATCH (n {string_key: 'test', int_key: 1, float_key: 3.14, map_key: {key: 'value'}, list_key: [1, 2, 3]}) RETURN n;
337
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
338
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
341
+ n
342
+ -----------------------------------------------------------------------------------------------------------------------------------------------------------------
343
+ {"id": 281474976710657, "label": "", "properties": {"int_key": 1, "map_key": {"key": "value"}, "list_key": [1, 2, 3], "float_key": 3.14, "string_key": "test"}}
344
+ (1 row)
345
+
339
346
MATCH (n {string_key: 'test'}) RETURN n;
340
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
341
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
347
+ n
348
+ -----------------------------------------------------------------------------------------------------------------------------------------------------------------
349
+ {"id": 281474976710657, "label": "", "properties": {"int_key": 1, "map_key": {"key": "value"}, "list_key": [1, 2, 3], "float_key": 3.14, "string_key": "test"}}
350
+ (1 row)
351
+
342
352
MATCH (n {lst: [1, NULL, 3.14, 'string', {key: 'value'}, []]}) RETURN n;
343
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
344
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
353
+ n
354
+ --------------------------------------------------------------------------------------------------------------
355
+ {"id": 281474976710658, "label": "", "properties": {"lst": [1, null, 3.14, "string", {"key": "value"}, []]}}
356
+ (1 row)
357
+
345
358
MATCH (n {lst: [1, NULL, 3.14, 'string', {key: 'value'}, [], 'extra value']}) RETURN n;
346
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
347
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
359
+ n
360
+ ---
361
+ (0 rows)
362
+
348
363
-- Path of one vertex.
349
364
MATCH p=() RETURN p;
350
365
p
@@ -392,14 +407,23 @@ MATCH (u)-[e]->(v) WHERE EXISTS ((u)-[e]->(v)) RETURN u, e, v;
392
407
393
408
-- Property Constraint in EXISTS
394
409
MATCH (u) WHERE EXISTS((u)-[]->({id: 'middle'})) RETURN u;
395
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
396
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
410
+ u
411
+ --------------------------------------------------------------------------
412
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
413
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
414
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
415
+ (3 rows)
416
+
397
417
MATCH (u) WHERE EXISTS((u)-[]->({id: 'not a valid id'})) RETURN u;
398
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
399
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
418
+ u
419
+ ---
420
+ (0 rows)
421
+
400
422
MATCH (u) WHERE EXISTS((u)-[]->({id: NULL})) RETURN u;
401
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
402
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
423
+ u
424
+ ---
425
+ (0 rows)
426
+
403
427
-- Exists checks for a loop. There shouldn't be any.
404
428
MATCH (u)-[e]->(v) WHERE EXISTS((u)-[e]->(u)) RETURN u, e, v;
405
429
u | e | v
@@ -465,11 +489,21 @@ MATCH (u)-[e]->(v) WHERE EXISTS((u)-[e]->(x)) RETURN u, e, v;
465
489
(7 rows)
466
490
467
491
MATCH (u) WHERE EXISTS(MATCH (u)-[]->({id: 'middle'}) RETURN 1) RETURN u;
468
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
469
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
492
+ u
493
+ --------------------------------------------------------------------------
494
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
495
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
496
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
497
+ (3 rows)
498
+
470
499
MATCH (u) WHERE EXISTS(MATCH (u)-[]->({id: 'middle'}) RETURN u) RETURN u;
471
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
472
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
500
+ u
501
+ --------------------------------------------------------------------------
502
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
503
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
504
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
505
+ (3 rows)
506
+
473
507
MATCH (u) WHERE u.id = ANY (MATCH (v) RETURN v.id) RETURN u;
474
508
u
475
509
----------------------------------------------------------------------------
@@ -521,20 +555,36 @@ RETURN u;
521
555
(3 rows)
522
556
523
557
MATCH (u) WHERE EXISTS(MATCH (u)-[]->({id: 'gsjka'}) RETURN 1) RETURN u;
524
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
525
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
558
+ u
559
+ ---
560
+ (0 rows)
561
+
526
562
MATCH (u) WHERE EXISTS(MATCH (v {id: 'middle'}) MATCH (u)-[]->(v) RETURN 1) RETURN u;
527
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
528
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
563
+ u
564
+ --------------------------------------------------------------------------
565
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
566
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
567
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
568
+ (3 rows)
569
+
529
570
MATCH (u) WHERE EXISTS(MATCH (v {id: 'middle'}) MATCH (u)-[]->(v) RETURN 1) RETURN u;
530
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
531
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
571
+ u
572
+ --------------------------------------------------------------------------
573
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
574
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
575
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
576
+ (3 rows)
577
+
532
578
MATCH (u) WHERE EXISTS(MATCH (u)-[]->(v {id: 'middle'}) RETURN 1) RETURN u;
533
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
534
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
579
+ u
580
+ --------------------------------------------------------------------------
581
+ {"id": 1125899906842625, "label": "v1", "properties": {"id": "initial"}}
582
+ {"id": 2251799813685249, "label": "v3", "properties": {"id": "initial"}}
583
+ {"id": 2251799813685251, "label": "v3", "properties": {"id": "end"}}
584
+ (3 rows)
585
+
535
586
MATCH (u) RETURN case WHEN EXISTS(MATCH (u)-[]->({id: 'gsjka'}) RETURN 1) THEN 1 ELSE 2 END;
536
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
537
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
587
+ ERROR: cannot handle unplanned sub-select
538
588
MATCH (u) RETURN case WHEN EXISTS(MATCH (u)-[]->() RETURN 1) THEN 1 ELSE 2 END;
539
589
ERROR: cannot handle unplanned sub-select
540
590
@@ -1300,8 +1350,11 @@ CREATE ({i: 1, j: 2, k: 3}), ({i: 1, j: 3}), ({i:2, k: 3});
1300
1350
(0 rows)
1301
1351
1302
1352
MATCH (n {j: 2}) WHERE n.i = 1 RETURN n;
1303
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
1304
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
1353
+ n
1354
+ ------------------------------------------------------------------------------
1355
+ {"id": 281474976710662, "label": "", "properties": {"i": 1, "j": 2, "k": 3}}
1356
+ (1 row)
1357
+
1305
1358
--
1306
1359
-- Prepared Statement Property Constraint
1307
1360
--
0 commit comments