Show Property
// Show all node properties under node schemas 'test_schema' of graphset `test_graph`
let result = await client.listNodeProperty({schema: "test_schema"}, {
graphSetName: "test_graph"
})
// Show all edge properties under edge schemas 'test_schema' of graphset `test_graph`
let result = await client.listEdgeProperty({schema: "test_schema"}, {
graphSetName: "test_graph"
})
Create Property
// Create node property 'test_pty' under node schema 'test_schema' of graphset 'test_graph'
let result = await client.createNodeProperty({
name: "test_pty",
description: "desc",
schema: "test_schema",
}, {
graphSetName: "test_graph"
})
// Create edge property 'test_pty' under edge schema 'test_schema' of graphset 'test_graph'
let result = await client.createEdgeProperty({
name: "test_pty",
description: "desc",
schema: "test_schema",
}, {
graphSetName: "test_graph"
})
Alter Property
// Revise information of node property 'test_pty' under node schema 'test_schema'
let result = await client.updateNodeProperty({
schema: "test_schema",
name: "test_pty",
newName: "test_pty_new",
newDesc: "desc"
})
// Revise information of edge property 'test_pty' under edge schema 'test_schema'
let result = await client.updateEdgeProperty({
schema: "test_schema",
name: "test_pty",
newName: "test_pty_new",
newDesc: "desc"
})
Drop Property
// Delete node property 'test_pty' from node schema 'test_schema'
let result = await client.deleteNodeProperty({
schema: "test_schema",
name: "test_pty",
})
// Delete edge property 'test_pty' from edge schema 'test_schema'
let result = await client.deleteEdgeProperty({
schema: "test_schema",
name: "test_pty",
})