Skip to content

Conversation

@fbiville
Copy link
Contributor

@fbiville fbiville commented Nov 21, 2025

This commit relaxes validation NKRN-001, which, until now,
required that every node target, referenced by a relationship,
defines at least one key or unique constraint.

The validation now allows such node targets to not define any key
or unique constraints themselves, if and only if another node covers
some of its labels and properties.

If the node reference overrides the mappings for key properties,
all these properties must be matched by key or unique constraints
defined elsewhere for any of the node labels.

@fbiville fbiville requested a review from a team as a code owner November 21, 2025 21:18
@fbiville fbiville force-pushed the flexible_node_keys branch 2 times, most recently from 156e43c to 0ec69d6 Compare November 21, 2025 21:28
This commit relaxes validation `NKRN-001`, which, until now,
required that every node target, referenced by a relationship,
defines at least one key or unique constraint.

The validation now allows such node targets to not define any key
or unique constraints themselves, if and only if another node's
key or unique constraint covers some of its labels and properties.

If the node reference overrides the mappings for key properties,
all these properties must be matched by key or unique constraints
defined elsewhere for any of the node labels.

Signed-off-by: Florent Biville <[email protected]>
@fbiville fbiville closed this Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants