pdpotter commented on issue #113: URL: https://github.com/apache/incubator-age/issues/113#issuecomment-918093763
Example for the second solution: Create person nodes ``` SELECT * FROM ag_catalog.cypher( 'people', $$ CREATE (a:Person {data:{name:'Jane', 'age': 35}}) $$ ) as (a ag_catalog.agtype); a --- (0 rows) SELECT * FROM ag_catalog.cypher( 'people', $$ CREATE (a:Person {data:{name:'Will', age: 21}}) $$ ) as (a ag_catalog.agtype); a --- (0 rows) ``` Retrieve all persons with age 21 ``` SELECT * FROM ag_catalog.cypher( 'people', $$MATCH(n {data:{age:21}}) RETURN n$$ ) as (n ag_catalog.agtype); n --------------------------------------------------------------------------------------------------------- {"id": 844424930131974, "label": "Person", "properties": {"data": {"age": 21, "name": "Will"}}}::vertex (1 row) ``` Retrieve all persons with age greater than 25 ``` SELECT * FROM cypher( 'people', $$MATCH(n) WHERE n.data.age > 25 RETURN n$$ ) as (n agtype); n --------------------------------------------------------------------------------------------------------- {"id": 844424930131973, "label": "Person", "properties": {"data": {"age": 35, "name": "Jane"}}}::vertex (1 row) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@age.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org