I’m upgrading to ApolloServer v4. I have a resolver called messageFolders. I can connect to it successfully via Sandbox, but so far if I try via useQuery:
const {data, error, loading, refetch} = useQuery(MESSAGEFOLDERS_QUERY, {
variables: {"localUserId": Meteor.userId() ? Meteor.userId() : ""},
fetchPolicy: 'cache-and-network',
onCompleted: data => {
setMessageFolders(data.messageFolders)
},
}, [ Meteor.userId()]);
…I get the error:
TypeError: Cannot read properties of undefined (reading ‘watchQuery’)
Any thoughts on what this might mean?