Closed davidshq closed 4 years ago
does this query work in the graphql playground? Did you try without the dollar, I think it might be the prefix for argument, and not part of the name itself.
Thanks, I've ended up rewriting things.
Glad you got to something working, for future reference, what did you need to change?
I abandoned the variable which wasn't defined - I was using code from an example I'd found on the web. The code I ended up with is found here: https://github.com/LiquidChurch/lqd-gatsby/blob/algolia-getting-started/src/utils/algolia-queries.js
I have the following query:
And then the call to execute the query:
When I attempt a
gatsby build
everything works fine until Algolia kicks in and then I get:Any ideas on what could be causing this? I've found some similar errors but nothing that seems to be applicable: https://github.com/apollographql/graphql-tag/issues/180 https://www.reddit.com/r/graphql/comments/h9k47y/using_graphql_variables_schema_issues_syntax/