react-apollo gql, TypeError: Object(...) is not a function
This seems like a known issue - see here.
Try installing graphql-tag
and importing gql
from this library.
Remove the curly brackets.
Instead of:
import { gql } from 'graphql-tag';
Do
import gql from 'graphql-tag';