I have a queries file that looks like this:
import {gql} from \'react-apollo\';
const queries = {
getApps: gql`
{
apps {
id
name
Since, compose has been removed from apollo, there's an alternative library called lodash. The method {flowRight} acts in the same way as compose. Just follow the steps:-
npm i -s lodash
import {flowRight} from 'lodash'
Exchange the usage of compose with flowRight, all the other code will work the same.