We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a product with a custom metafield of type list of files . I've tried the following to pass information (some images):
list of files
shop.Metafield{ Key: key, Namespace: ns, Value: `["gid://shopify/ProductImage/66131787907409"]`, Type: shop.MetafieldType("list.file_reference"), }
I get the error metafields.value: must be a file reference string.
metafields.value: must be a file reference string.
For debugging purposes I also tried only one value/string
shop.Metafield{ Key: key, Namespace: ns, Value: `"gid://shopify/ProductImage/66131787907409"`, Type: shop.MetafieldType("list.file_reference"), }
I get the error: metafields.value: must be an array.
metafields.value: must be an array.
Also tried:
shop.Metafield{ Key: key, Namespace: ns, Value: []string{"gid://shopify/ProductImage/66131787907409"}, Type: shop.MetafieldType("list.file_reference"), }
I get error value: expected Array to be a String
value: expected Array to be a String
Any idea how am I supposed to pass a list of files (images) ? This drives me absolutely crazy! I've spent 4 hours trying to fix this...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a product with a custom metafield of type
list of files
.I've tried the following to pass information (some images):
I get the error
metafields.value: must be a file reference string.
For debugging purposes I also tried only one value/string
I get the error:
metafields.value: must be an array.
Also tried:
I get error
value: expected Array to be a String
Any idea how am I supposed to pass a list of files (images) ? This drives me absolutely crazy! I've spent 4 hours trying to fix this...
The text was updated successfully, but these errors were encountered: