mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
parent
79191397fa
commit
ff22b0210a
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ const { PubSub } = require('apollo-server');
|
|||
const pubsub = new PubSub();
|
||||
```
|
||||
|
||||
Subscriptions are another root level type, similar to Query and Mutation. To start, we need add to add the `Subscription` type to our schema:
|
||||
Subscriptions are another root level type, similar to Query and Mutation. To start, we need to add the `Subscription` type to our schema:
|
||||
|
||||
```js line=2-4
|
||||
const typeDefs = gql`
|
||||
|
|
Loading…
Add table
Reference in a new issue