cho2hhun commented on issue #1225:
URL: https://github.com/apache/age/issues/1225#issuecomment-1769754521

   @jrgemignani Actually The matter ws it couldn't cast JSON, because most of 
the agtype is used to **key-value**, but cannot casting it to proper Key-value 
JSON(B) type... it is only casted just one value if I casting it to JSON
   
   
   If I cast it to JSON after it is returned from cyphper like below,
   `select to_jsonb(a) from cypher('car', $$
                                        match (a : vt_car)
                                        return a $$) as (a varchar);` 
   
   then, its results are like below
   
   `"{\"id\": 1125899906842625, \"label\": \"vt_car\", \"properties\": 
{\"carline\": \"ENCLAVE FWD\", \"mfr_name\": \"General Motors\", 
\"car_division\": \"Buick\"}}::vertex"`
   
   In a nutshell, **It is casted as one string value with converting to JSONB**


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to