Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted GraphQl, get "Unable to generate data to release..." #127

Open
Fefe-Hern opened this issue Dec 22, 2022 · 1 comment
Open

Attempted GraphQl, get "Unable to generate data to release..." #127

Fefe-Hern opened this issue Dec 22, 2022 · 1 comment

Comments

@Fefe-Hern
Copy link

Continuing #77 and #108, there doesn't appear to be any documentation at all on how to configure GraphQl to read or load information dynamically.

When attempting to create a widget that lets the user pick a category, instead when I use publish, I seem to get a generic failure error:
Unable to generate data to release, please check the widget template config or template data

I looked at the code and saw that potentially queryParams.json and queryParamsBuilder.json need to be provided too for a GraphQl-based widget, but without any documentation I'm stuck on how we could push the widget through.

@AustinJones-Malouf
Copy link

@Fefe-Hern I don't know if you're still struggling with this issue but I ran into the same error yesterday. I had the graphQL query working fine locally getting a single product but had that same error when I went to push. It turns out, on top of having to have the query. graphql and queryParamsBuilder.json files, you also need to add some hidden settings to your schema. If you look at the documentation for how to create a graphql query with a post request, in their hidden settings they have a "type": "graphql". Its "typeMeta" -> "mappings" is structured identically to your queryParamsBuilder.json file. Once I added this, I was able to publish the widget to the store and everything seems to be working so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants