查看属性
// 查看点属性
let result = await client.listNodeProperty({schema: "test_schema"}, {
graphSetName: "test_graph"
})
// 查看边属性
let result = await client.listEdgeProperty({schema: "test_schema"}, {
graphSetName: "test_graph"
})
创建属性
// 创建点属性
let result = await client.createNodeProperty({
name: "test_pty",
description: "desc",
schema: "test_schema",
}, {
graphSetName: "test_graph"
})
// 创建边属性
let result = await client.createEdgeProperty({
name: "test_pty",
description: "desc",
schema: "test_schema",
}, {
graphSetName: "test_graph"
})
修改属性
// 修改点属性
let result = await client.updateNodeProperty({
schema: "test_schema",
name: "test_pty",
newName: "test_pty_new",
newDesc: "desc"
})
// 修改边属性
let result = await client.updateEdgeProperty({
schema: "test_schema",
name: "test_pty",
newName: "test_pty_new",
newDesc: "desc"
})
删除属性
// 删除点属性
let result = await client.deleteNodeProperty({
schema: "test_schema",
name: "test_pty",
})
// 删除边属性
let result = await client.deleteEdgeProperty({
schema: "test_schema",
name: "test_pty",
})