Open Fefe-Hern opened 1 year ago
@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.
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.