import gql from 'graphql-tag' import { graphql, compose } from 'react-apollo' const GetStatus = gql` query GetStatus() { getStatus() { response } }` const GetStatus = gql` query GetStatus() { getStatus() { response } }` const GetStatus = gql` query GetStatus() { getStatus() { } }` const withAppSyncStatus = compose( graphql(GetStatus, { name: 'getStatus', options: (ownProps) => ({ fetchPolicy: 'cache-and-network', variables: { } }), props: (props) => { if (props.getStatus.error) console.log(props.getStatus.error) return props } }) ) export { GetStatus, GetStatus, GetStatus, withAppSyncStatus }