What types of constraints can you define for a graph?

Hello,
I'm taking the course from Graph academy and following is the question where I'm looking for more clarifications : The question accepts multiple options.

What types of constraints can you define for a graph that are asserted when a node or relationship is created or updated?

Options :

  • unique values for a property of a node
  • unique values for a property of a relationship
  • a node must have a certain set of properties with values
  • a relationship must have a certain set of properties with values

Based on my exploration sofar I feel that all of these are valid constraints that can be applied on the Graph node or relationship.
When I try to select all of these options or first two or last two options the system is throwing back as incorrect answer.
Any help in this regard in much appreciated.

Regards,
Ranjith

Note that there's no unique indexes on relationships in Neo4j. The other three types are possible.

1 Like

Thank you stefan.armbruster for the pointer.