-
Notifications
You must be signed in to change notification settings - Fork 281
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
slice doesn't exist in any of 1 places to unmarshal #54
Comments
I managed to fix the problem. For some reason when I don't use embedded structs, it works fine. In particular, I need to use this as the query:
|
Thanks for reporting. I'll take a look at why the original query didn't work. It looks like it should work and this is a bug. |
Hi, it turns out this was my problem! One of the fields in the response (Tags), is actually a slice of strings. Somehow it worked for some customers and didn't work for others. I missed this because almost none of the customers had a value for the Tags field, so it worked most of the time. I think this can be marked as resolved. Sorry! |
+1 on this, I had a similar issue, it turned out that in my query shape I had
but I needed to have:
|
I know this error has popped up before, but previous solutions don't seem to apply to me (or they do and I've overlooked it somehow). I'm using this module to itneract with the Shopify GraphQL API. I have a function like this:
However, when I run this function, I get the following error:
slice doesn't exist in any of 1 places to unmarshal
.This is the GraphQL call I am trying to perform:
The response looks something like this:
I can't figure out what I'm missing. I have a slice for the edges. And no other slice appears in the response.
The text was updated successfully, but these errors were encountered: