The Graph Edge collection is a form of document collection. It is used define relationships between two documents by using the _from and _to system attributes and the document _id system attribute.
Different ways to create edge collections are described below.
- Web Console
- REST API
Follow these instructions to create a new collection Graph Edge collection using the GDN console web UI.
Click New Collection.
Click Graph Edge.
Enter information about the collection and then click Create.
- Collection Name - Required. A unique name to distinguish the collection. Spaces are not allowed.
- Geo Distribution - Select whether to store data globally or locally.
- Enable Collection stream - Enable streams for all locations for this collection.
- Wait for sync - Synchronize to disk before completing document creation or update.
Use our interactive API Reference with code generation in 18 programming languages to Create a Graph Edge Collection.
Use the gdnsl collection create CLI command to create a Graph Edge collection.