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