You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to see the node id's as text in the AGE viewer ? I've found a way to see it like this:
First I made this custom function:
CREATE OR REPLACEFUNCTIONhex_to_utf8(hex_str TEXT) RETURNS TEXTAS $$
DECLARE
clean_hex TEXT;
utf8_str TEXT;
BEGIN-- Remove 'x' prefix
clean_hex := REGEXP_REPLACE(hex_str, '^x', '');
-- Convert from hex to bytes, then utf8
utf8_str := CONVERT_FROM(DECODE(clean_hex, 'hex'), 'UTF8');
RETURN utf8_str;
END;
$$ LANGUAGE plpgsql;
Then I execute a query like this.
SELECT
hex_to_utf8((to_json(result.n)->'properties'->>'node_id')) AS node_id_utf8,
*FROM cypher('amaine_pg', $$
MATCH (n)-[r]-(m)
RETURN n,r,m
LIMIT10
$$) AS result(
n agtype,
r agtype,
m agtype
);
but I can only see it in the table page
But in the GRAPH visualizer I only get a blank screen.
The text was updated successfully, but these errors were encountered:
Is there any way to see the node id's as text in the AGE viewer ? I've found a way to see it like this:
First I made this custom function:
Then I execute a query like this.
but I can only see it in the table page
But in the GRAPH visualizer I only get a blank screen.
The text was updated successfully, but these errors were encountered: