-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
documentationStrictly about documentationStrictly about documentationgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.help wanted
Description
I was following the tutorial in the README file. I noticed if I use
// publish to the channel
pubsub.publish('newCommentsChannel', {
id: 123,
content: 'Test',
repoFullName: 'apollostack/GitHunt-API',
posted_by: 'helfer',
});
I will get
{
data: {
commentAdded: null
}
}
But if I publish with the subscription name in the object
// publish to the channel
pubsub.publish('newCommentsChannel', {
commentAdded: {
id: 123,
content: 'Test',
repoFullName: 'apollostack/GitHunt-API',
posted_by: 'helfer',
}
});
Then I will get the result as in the README.
Am I missing something from the document?
ervorel, n1ru4l, tgdn, phongsakornp, BrightonWeBill and 1 moreBrightonWeBillBrightonWeBill
Metadata
Metadata
Assignees
Labels
documentationStrictly about documentationStrictly about documentationgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.help wanted