I have a queries file that looks like this:
import {gql} from \'react-apollo\';
const queries = {
getApps: gql`
{
apps {
id
name
According to this Link, to use compose()
you need to follow these steps:
1- install "recompose" package using npm i recompose
2- import package using import { compose } from "recompose";
3- use it in the form of:
export default compose(
graphql(Query1, { alias: "Query1" }),
graphql(Query2, { alias: "Query2" })
)(Test);
documentation : https://www.apollographql.com/docs/react/api/react-apollo/