Create a Graph Edge Collection
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
- CLI
Follow these instructions to create a new collection Graph Edge collection using the GDN console web UI.
Click Collections.
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.
- Collection stream - Enable streams for all locations for this collection.
- Strong consistency - Enable strong consistency on this collection. For more information, refer to Strong consistency.
- Distribution - Select whether to store data globally or locally.
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.