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)
- JDBC Driver error during compile time
- First MERGE does not see the second MERGE's changes
- multidimensional arrays are not processed correctly by nodejs driver
- Add nodejs-pg-age to npm
- The Go driver becomes "undefined: parser", and the application cannot be built. HOT 13
- How to install Apache Age 1.4.0 on Ubuntu server 20.04 LTS with Postgresql 15.5? HOT 1
- Usage of containment op instead of equal in property constraints (for lists and maps) HOT 5
- "Hierarchical: graph label organization"....How to? HOT 1
- Cypher query to exlude subpaths (or return only full paths) HOT 2
- Python driver: Unicode in cypher statements
- How to specify property types when loading vertices from files with "load_labels_from_fileβ HOT 3
- No update path to 1.5.0 HOT 4
- age 1.5.0 source installation failed on pg14 debian bookworm HOT 3
- Several server crashes when running tests in parallel HOT 1
- Invalid reuse of previous clause variable in succeeding CREATE clause HOT 3
- What is the best practices for creating vertices and edges in AGE to avoid duplicates and maximize performance? HOT 5
- I have a question about the function of the agtype json operator in version 1.5.0 HOT 7
- Sorted queries do not utilise indices, when such are introduced HOT 7
- Request for comments on using Apache AGE
- AGE for MS Azure PostgreSQL
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.