Hey Ben,
Almost! It has to be a key-value pair, so something like this:
mutation { checkoutCreate(input: { lineItems: [ { variantId: "VARIANT_ID", quantity: 1 } ], customAttributes: [ { key: "Name", value: "David" } ] }) { checkout { id webUrl } } }
If you click on the [AttributeInput!] it tells you the format: shopify.dev/api/storefront/referen...
Let me know if that helps!
Great! But, now where do I see the custom attributes? I cant see them on the order page.
Great course btw!
You should see them on your Shopify admin dashboard under orders.
nvm, I figured it out.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Ben,
Almost! It has to be a key-value pair, so something like this:
If you click on the [AttributeInput!] it tells you the format: shopify.dev/api/storefront/referen...
Let me know if that helps!
Great! But, now where do I see the custom attributes? I cant see them on the order page.
Great course btw!
You should see them on your Shopify admin dashboard under orders.
nvm, I figured it out.