Skip to main content
We’re overhauling Dgraph’s docs to make them clearer and more approachable. If you notice any issues during this transition or have suggestions, please let us know.
Dgraph allows a set of properties to be associated with any Relationship. E.g. if there is a β€œworksFor” relationships between Node β€œBob” and Node β€œGoogle”, this relationship may have facet values of β€œsince”: 2002-05-05 and β€œposition”: β€œEngineer”. Facets can always be replaced by adding a new Node representing the relationship and storing the facet data as attributes of the new Node. The term β€œfacet” is also common in database and search engine technology, and indicates a dimension or classification of data. One way to use facets it to indicate a relationship type.