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

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.

codeinteger

HTTP response code.

errorboolean required

Flag if there is an error in response. False for this response.

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.