cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

1 ACCEPTED SOLUTION

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

View solution in original post

2 REPLIES 2

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

Thank you stefan.armbruster for the pointer.