(hypothetical example)

Say I have a users document group and another document 
group sessionTokens that store the session the users have. Each user can 
have multiple tokens but a token can only belong to one user. The 
association is done through edges.

Now if I use graph functions I can delete a token and the edge between the 
user and the token gets deleted automatically, and that is great. But what 
if I want to make sure that if a user is deleted, I want all their session 
tokens (vertices) to be deleted automatically as well (or else they will be 
orphan tokens)? Do I have to handle this in application code? Or is there a 
declarative way to ensure this type of integrity?

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/2528ec2a-db68-4040-9c1c-065aba0c30b7n%40googlegroups.com.

Reply via email to