import gql from 'graphql-tag' ; import { fragments } from './fragment' ; export const messageAddedSubscription = gql `
  subscription messageAdded {
    messageAdded {
      ...Message
      chat {
        id,
      },
    }
  }

  ${ fragments [ 'message' ] }
` ;