I have the following gQL defined,
import gql from 'graphql-tag'
const SIGN_UP_QUERY = gql`
query {
signUpForm @client {
firstName
email
password
}
}
`
and i use it with react-apollo query as such
<Query query={SIGN_UP_QUERY}>
{({
data: {
signUpForm: { firstName }
},
loading
}) => { ...... }}
</Query>
With this i am getting an error Cannot read property 'firstName' of undefined
What is it that i am doing wrong here?