List User Defined/Install queries for a graph

Assuming there are multiple graphs in the database, is there a way to list only user defined installed queries for a specified graph?

Thank you.


gsql > use graph "MyGraph"
gsql > show query *

Thanks Jon.

I should have been more clear. I’m looking for a list of just the query names.

However, your solution was also helpful as I was going to need it in about 10 minutes.

1 Like

you can always do a simple ls command which will show the query names, along with the vertexes and edges. you can also look for “Queries:” in the output and just grab everything after that

1 Like

To my knowledge you would need to grab the queries - you could do a simple python script that pulls that information into a list.

Midway down in this article it talks about the process of extracting queries

Thanks Jon. Another good item for my toolbag