Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

draftOrderCreate metafields not persisted to order after draftOrderComplete

draftOrderCreate metafields not persisted to order after draftOrderComplete

ronald_g
Explorer
80 2 16

Hi,

It's great that draftOrderCreate allows metafields. However, when the draft order is converted to real order via draftOrderComplete, the metafields become nil. Is there a way to add metafields in one mutation without using metafieldsSet? The reason is that since GraphQL doesn't support transactions, we've found order gets created but metafield isn't set.

Replies 0 (0)