Skip to content

Conversation

@swarthout
Copy link

Correct me if I'm wrong, but it looks like the argument to comentAdded in the subscription (line 37) is called repoName, and in the example publish call (line 57), you give the comment the attribute repoFullName. I made the subscription filter function reflect this naming.

Correct me if I'm wrong, but it looks like the argument to comentAdded in the subscription (line 37) is called repoName, and in the example publish call (line 57), you give the comment the attribute repoFullName. I made the subscription filter function reflect this naming.
@helfer
Copy link
Contributor

helfer commented Sep 19, 2016

I'm pretty sure this is working code that I took from GitHunt. Basically, the comment that comes in as the root value is the database object, which uses snake case. It's a bit of an awkward situation that we've seen in many GraphQL APIs.

@helfer helfer closed this Sep 19, 2016
@swarthout
Copy link
Author

Ok that makes sense. I thought the setup functions were run after the revolver for the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants