V2 Order Edits Keep Omitted Fields And Accept Clearing
The V2 order edit mutations now leave a field unchanged when you omit it, and clear it when you send an empty value. This covers saveDraftOrder, updateOrderDetails, updateOrderGiftMessage, updateOrderShippingInstructions, and updateOrderCustomerInformation. Before, clearing a value was often ignored, and an edit to one part of an order could change another.
An empty string clears text such as contact fields, address line 2, the gift message, and the requested shipping method. An explicit null also clears the expected and shipping dates, the gift message, and the requested shipping method. An empty orderItems list or orderMetadata object clears its contents.
shipToSameAsBillTo on saveDraftOrder no longer defaults to true. Omit it to keep the current setting. Editing the shipping address no longer removes the billing address, and the reverse.