Comments (4)
I don't know English well, so I don't know if I understood your question well. If I understood your question well,
I think this question can explain your curiosity.
CREATE EXTENSION age;
LOAD 'age';
SET search_path = ag_catalog, "postgres", public;
SELECT create_graph('test_graph');
SELECT * from cypher('test_graph', $$
CREATE (a:Part {part_num: '123'}),
(b:Part {part_num: '345'}),
(c:Part {part_num: '456'}),
(d:Part {part_num: '789'})
$$) as (a agtype);
select * from cypher('test_graph', $$ match(v:Part) where id(v) = 844424930131969 return v.part_num $$) as (result text);
with a as(select * from cypher('test_graph', $$ match(v:Part) where id(v) = 844424930131969 return v.part_num $$) as (result text))
select a from a;
- If the cypher query result is in text format, you can cast it in text format.
- To query using a specific id value, you can use the id function where id function.
from age.
Of course, it returns text type when I use cypher query only(as (result text)).
I want know when I use 'with', how I get data that I wanted type.
Here is returned value in queried that.
from age.
Is this what you want?
select "result", "id" from cypher('test_graph', $$ match(v:Part) where id(v) = 844424930131969 return v.part_num , id(v) $$) as (result text, id text);
with a as(
select * from cypher('test_graph', $$ match(v:Part) where id(v) = 844424930131969 return v.part_num , id(v) $$) as (result text, id text)
)
select "result", "id" from a;
from age.
Oh yes. it's correct.
Thanks to reply.
from age.
Related Issues (20)
- is_valid_label fails to validate label type, while is_valid_label_name is calling into is_valid_label, should be the other way around HOT 11
- Failure creating vertex with name close to MAX_LABEL_NAME_LEN 65535 HOT 7
- How to tune age-viewer to load graph faster HOT 1
- Reserved Keyword Handling: How to update a property which is a keyword. HOT 8
- Parrallel usage using the age wrapper HOT 9
- Compilation error on MacOS 14.5 HOT 3
- Is agtype like json? Casting agtype to json - list of vertices or edges? HOT 3
- Running queries for multiple labels HOT 4
- Docker container - create_graph shows error message when using double quotes HOT 2
- Memory leak HOT 9
- get_graph_oid function declaration return type uint32 definition Oid HOT 3
- Unable to install AGE in Ubuntu HOT 1
- make installcheck fails in local environment HOT 2
- Memory leak during btree(agtype) HOT 7
- AGE in Production HOT 1
- Syntax Error When Running BFS Recursive Query in PostgreSQL with Apache AGE HOT 1
- Single SET command fails on MERGE created edge. HOT 2
- "|" causes syntax error HOT 1
- "where is not null" causes segmentation fault HOT 3
- Server crashes when executing SELECT agtype_hash_cmp(agtype_in('[null, null, null, null, null]')); HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from age.