Graphs
Add vertex collection
Adds a vertex collection to the set of orphan collections of the graph. If the collection does not exist, it is created.
Note: Requires Administrator permissions to access the GeoFabric and Read Only access on every collection used within this graph.
post/_fabric/{fabric}/_api/graph/{graph}/vertex
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
graphstring string required
The name of the graph.
Response
Successfully created the vertex collection when waitForSync is enabled.
Example response
{
"code": 201,
"graph": {
"_id": "_graphs/graph1",
"_key": "graph1",
"_rev": "_drxzsai--_",
"edgedefinitions": [
{
"collection": "edgeName",
"from": [
"sourceNode"
],
"to": [
"destinationNode"
]
}
],
"name": "graph1",
"orphanCollections": [
"emptyNode"
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.