I'm working on Apollo pub-sub using examples from GitHunt-React and GitHunt-API. My subscription resolver is successfully firing when a new record is added to the database it is watching. Now I need to connect my client to the results being sent by the pub-sub resolver.
In GitHunt-React, CommentsPage.js, I see this:
subscribe(repoName, updateCommentsQuery) {
[.....]
}
Where is updateCommentsQuery declared and how is it being passed to subscribe?