zonofthor
09/04/2018, 9:00 AMArnab
09/04/2018, 9:08 AMtype A {
b: B @relation(name: "AtoB", onDelete: CASCADE)
otherField: String
...
}
type B {
...
}
And now you want to delete all nodes of type A
but not necessarily of type B
?zonofthor
09/04/2018, 9:09 AMzonofthor
09/04/2018, 9:10 AMArnab
09/04/2018, 9:10 AMA
are deleted? It could very well be that type B
went from being a subfield to independent dataArnab
09/04/2018, 9:12 AMPerson
type and separated from things like contactinfo. So you take the personalia
field and extract it to its own type which is no longer connected directly to a Person object
zonofthor
09/04/2018, 9:12 AMArnab
09/04/2018, 9:13 AMzonofthor
09/04/2018, 9:13 AMArnab
09/04/2018, 9:14 AMzonofthor
09/04/2018, 9:14 AMzonofthor
09/04/2018, 9:15 AMArnab
09/04/2018, 9:15 AMzonofthor
09/04/2018, 9:15 AMzonofthor
09/04/2018, 9:16 AMArnab
09/04/2018, 9:16 AMArnab
09/04/2018, 9:17 AMzonofthor
09/04/2018, 9:17 AMzonofthor
09/04/2018, 9:18 AM@relation(name: "Comments", onDelete: CASCADE)
zonofthor
09/04/2018, 9:19 AMArnab
09/04/2018, 9:21 AMArnab
09/04/2018, 9:21 AMThis argument is only required if relations are ambiguous. Note that the name argument is required every time you're using the @relation directive.
zonofthor
09/04/2018, 9:31 AM