Defining ArangoDB Relationships

The following properties are applicable to an ArangoDB Relationship object.

Tab

Property

Description

Additional Information

  Parent Specifies the parent collection or view of the relationship  
  Child Specifies the child collection or view of the relationship  
  Physical Only Specifies whether the relationship is generated in physical model only  
  Generate Specifies whether the relationship is generated  
General Edge Definitions Specifies the list of relation definition objects  
Type Specifies the relationship type

Identifying: Indicates that the child entity is dependent on the parent entity for its identity and cannot exist without it

Non-Identifying: Indicates that one instance of the parent entity is related to multiple instances of the child entity

Null Option Specifies the null option in the Non-Identifying relationship fields

Null: Specifies that the foreign key within the child entity will accept nulls. This means that the child entity can exist without the existence of the parent and the relationship is optional.

Not Null: Specifies that the foreign key within the child entity will not accept nulls. This means that the child entity is dependent upon the parent entity for its existence and the relationship is mandatory.

Physical Name Specifies the physical name of the relationship  
Database Specifies the database of the relationship  
Cardinality Specifies the cardinality of the relationship

Zero, One or More: Indicates that each parent in the relationship is connected to zero, one, or more instances of the child entity

One or More (P): Indicates that each parent in the relationship is connected to one or more instances of the child entity

Zero or One (Z): Indicates that each parent in the relationship is connected to zero or one instance of the child entity

Cardinality Value Specifies the cardinality value of the relationship  

Relationship types, Identifying and Non-Identifying are only for representational purpose and not supported in ArangoDB database. Relationships in ArangoDB database is defined between two document collections via an edge collection.