Replies: 2 comments
-
2.0 has support for two more policy types: |
Beta Was this translation helpful? Give feedback.
0 replies
-
@elprans thanks! Good to know it's not me missing something obivious. Eagerly awaiting July 28th then! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry for lame question, this should be clear from documentation, but I'm having troubles defining proper link deletion policies.
Let's say we have two entities - User and Post. User can have multiple posts.
I want to ensure that all user's posts are automatically deleted whenever user is deleted.
Schema is:
I understand that if link is defined in opposite direction (i.e.
Post
as propertyauthor
withon targe delete delete source
polity), then it should work. But what to do in this case?I'm guessing some solutions like:
Post
with backlinks and define target deletion policy there? (feels hackish and not sure what's happening under the hood)Would be grateful for advice on how to idiomatically implement such a deletion policy.
Beta Was this translation helpful? Give feedback.
All reactions