Skip to content

Commit

Permalink
Step 10.2: Add messageAdded subscription document
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Urigo committed May 20, 2020
1 parent 88f09c0 commit 6f10fe2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/subscriptions/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as messageAdded } from './messageAdded.subscription';
11 changes: 11 additions & 0 deletions src/graphql/subscriptions/messageAdded.subscription.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import gql from 'graphql-tag';
import * as fragments from '../fragments';

export default gql`
subscription MessageAdded {
messageAdded {
...Message
}
}
${fragments.message}
`;

0 comments on commit 6f10fe2

Please sign in to comment.