Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please help with example, how to correctly use age_graph_stats function #1937

Closed
MironAtHome opened this issue Jun 27, 2024 · 3 comments
Labels
question Further information is requested

Comments

@MironAtHome
Copy link

It would be very nice to have example of correct usage of the function age_graph_stats.
Please help.

@MironAtHome MironAtHome added the question Further information is requested label Jun 27, 2024
@jrgemignani
Copy link
Contributor

--
-- graph_stats command
--
-- what's in the current graphs?
SELECT * FROM cypher('ag_graph_1', $$ RETURN graph_stats('ag_graph_1') $$) AS (result agtype);
                                  result
--------------------------------------------------------------------------
 {"graph": "ag_graph_1", "num_loaded_edges": 0, "num_loaded_vertices": 3}
(1 row)

SELECT * FROM cypher('ag_graph_1', $$ RETURN graph_stats('ag_graph_2') $$) AS (result agtype);
                                  result
--------------------------------------------------------------------------
 {"graph": "ag_graph_2", "num_loaded_edges": 0, "num_loaded_vertices": 2}
(1 row)

SELECT * FROM cypher('ag_graph_1', $$ RETURN graph_stats('ag_graph_3') $$) AS (result agtype);
                                  result
--------------------------------------------------------------------------
 {"graph": "ag_graph_3", "num_loaded_edges": 0, "num_loaded_vertices": 1}
(1 row)


@jrgemignani
Copy link
Contributor

Right now, that is all it shows.

@MironAtHome
Copy link
Author

Great thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants