I have got an error during a graphql API call in AWS amplify
I import the queries like (just like in the documentation with *):
import * as queries from '../graphql/queries';
This is my API request where I receive the error (Must provide Source):
const data = await API.graphql(graphqlOperation(queries.nearbyZVL, {filter: filter}));
And in the same file another API request like below is working correctly:
const result = await API.graphql(graphqlOperation(queries.getProfile, { id: cognitoUserId }));
The nearbyZVL is a custom query and resolver in AWS appsync. In the appsync console the query is working fine!
Some help is appreciated! :)