GRAPH.LIST
Lists all graph keys in the keyspace.
Examples
from falkordb import FalkorDB
db = FalkorDB(host='localhost', port=6379)
graphs = db.list_graphs()
print(graphs)
import { FalkorDB } from 'falkordb';
const db = await FalkorDB.connect({
socket: { host: 'localhost', port: 6379 }
});
const graphs = await db.list();
console.log(graphs);
use falkordb::{FalkorClientBuilder, FalkorConnectionInfo};
let connection_info: FalkorConnectionInfo = "falkor://127.0.0.1:6379"
.try_into()
.expect("Invalid connection info");
let client = FalkorClientBuilder::new()
.with_connection_info(connection_info)
.build()
.expect("Failed to build client");
let graphs = client.list_graphs();
println!("{:?}", graphs);
import com.falkordb.*;
Driver driver = FalkorDB.driver("localhost", 6379);
List<String> graphs = driver.listGraphs();
System.out.println(graphs);
GRAPH.LIST
Sample Output
127.0.0.1:6379> GRAPH.LIST
2) G
3) resources
4) players