mirror of https://gitee.com/bigwinds/arangodb
737 B
737 B
@brief Updates the data of a vertex in collection vertexCollectionName
graph.vertexCollectionName.update(vertexId, data, options)
@PARAMS
@PARAM{vertexId, string, required} _id attribute of the vertex
@PARAM{data, object, required} JSON data of vertex.
@PARAM{options, object, optional} See collection documentation
@EXAMPLES
@EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionUpdate} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); graph.female.save({name: "Lynda", _key: "linda"}); graph.female.update("female/linda", {name: "Linda", _key: "linda"}); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT