age-website icon indicating copy to clipboard operation
age-website copied to clipboard

Update Graph Syntax

Open arun-esh opened this issue 2 years ago • 0 comments

After installing age extension, I followed the documentation to create the graph.

website link: Create a Graph

create_graph(graph_name); <-- this is the command, to run for creating a new graph, as per the documentation.

If I run command as:

postgres=# create_graph(graph_name);

Output

ERROR:  syntax error at or near "create_graph"
LINE 1: create_graph(graph_name);

or

postgres=# create_graph("graph_name");

Output

ERROR:  syntax error at or near "create_graph"
LINE 1: create_graph("graph_name");

or

postgres=# create_graph('graph_name');

Output

ERROR:  syntax error at or near "create_graph"
LINE 1: create_graph('graph_name');

The result is same.


What worked for me:

I will have to use the command as:

postgres=# SELECT create_graph('graph_name');

Output

NOTICE:  graph "graph_name" has been created
 create_graph
--------------

(1 row)

Question:

Just want to ask if docs can be updated with working command.

arun-esh avatar Sep 24 '22 17:09 arun-esh