Show Schema
// Show all schemas of graphset `test_graph`
let result = await client.listSchema({graphSetName: "test_graph"})
Create Schema
// Create node schema `test_node_schema` under graphset `test_graph`
let reuslt = await client.createNodeSchema({name: "test_node_schema", desc: "desc" }, {
graphSetName: "test_graph"
})
// Create node schema `test_edge_schema` under graphset `test_graph`
let reuslt = await client.createEdgeSchema({name: "test_edge_schema", desc: "desc" }, {
graphSetName: "test_graph"
})
Alter Schema
// Revise information of node schema 'test_node_schema' of graphset 'test_graph'
let result = await client.updateNodeSchema({
name: "test_node_schema",
newName: "test_node_schema_new",
newDesc: "desc"
}, {graphSetName: "test_graph"})
// Revise information of edge schema 'test_edge_schema' of graphset 'test_graph'
let result = await client.updateEdgeSchema({
name: "test_edge_schema",
newName: "test_edge_schema_new",
newDesc: "desc"
}, {graphSetName: "test_graph"})
Drop Schema
// Delete node schema 'test_node_schema'
let result = await client.dropNodeSchema({
name: "test_node_schema",
})
// Delete node schema 'test_edge_schema'
let result = await client.dropEdgeSchema({
name: "test_edge_schema",
})