Jannis Pohlmann
11/28/2017, 2:13 PMSubscriptionManagerForModel
). I see that each of those model-specific managers handles database events specific to that model (creation, deletion, update) and then re-executes subscription queries and sends the result back to the respective subscribers. That’s all pretty clear.
How does Graphcool deal with subscriptions that include deeply nested relationships though? E.g. with a subscription like
subscription User {
User {
node {
id
name
friends {
interests {
name
tags {
name
}
}
}
}
}
}
Let’s say a tag or an interest is updated, how does Graphcool know that the above subscription is affected its query needs to be re-executed?agartha
11/28/2017, 2:15 PMJannis Pohlmann
11/28/2017, 2:16 PMJannis Pohlmann
11/28/2017, 2:18 PMagartha
11/28/2017, 2:19 PMJannis Pohlmann
11/28/2017, 2:20 PMJannis Pohlmann
11/28/2017, 2:59 PM