GraphQL Subscriptions in Apollo Client
Amanda Liu
26014

Where does the code in this code block go?

> submitComment: (_, { repoFullName, …

I tried putting in in server/main.js below the code in the block:

> import { PubSub, SubscriptionManager } from ‘graphql-subscriptions’;…

…but the colon after “submitComment” seems to indicate it needs to be part of some larger function or statement, so that it gets flagged as a syntax error.

Thanks in advance for the info.

A single golf clap? Or a long standing ovation?

By clapping more or less, you can signal to us which stories really stand out.