I am trying to create custom query for Spotify API using Netlify Graph, but I can't save the query. My query works as expected in graphql playground, the problem rises when I either try to save it or create handler for it. Creating handler echoes this message in terminal without creating netlify function for handler:
Handling Netlify Graph: Generate handler as Netlify function ...
» Warning: Operation [object Object] not found in graphql, found: dac9c498-f1fc-4cac-ae1b-38a134c116ab}
» Warning: No handler was generated for operationId [object Object]
» Warning: No files generated for operation id: [object Object]
Finished handling Netlify Graph: Generate handler as Netlify function ...
I am quite new to Netlify and would greatly appreciate any help regarding fixing this problem.
Here is the query that I used:
query SearchQuery($search: String!) {
spotify {
search(data: {query: $search}, first: 10) {
tracks {
id
name
album {
name
images {
url
}
}
artists {
name
}
}
}
}
}