GitHub user jrgemignani added a comment to the discussion: Simplify this query 
and remove redundancy

@wgmayer0  I use Copilot, but generally speaking, if you can constrain the AI, 
you can get decent results. As for your query, I will leave you with this 
snippet, which should help you out -

```
psql-17.6-5432-pgsql=# select * from cypher('graph', $$ match (b:Book) return 
pg_catalog.json_build_object(label(b)::text, b.title::pg_text) $$) as (result 
json);
      result
------------------
 {"Book" : "Qrs"}
 {"Book" : "Qrs"}
 {"Book" : "Qrs"}
 {"Book" : "Xyz"}
 {"Book" : "Abc"}
 {"Book" : "Abc"}
 {"Book" : "Abc"}
(7 rows)
```

GitHub link: 
https://github.com/apache/age/discussions/2226#discussioncomment-14555955

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to