Seems I am having problems with models and their fields lately. To reiterate what I told [Gadget] Jenny a day or two ago: I do not modify Gadget/Shopify models and their fields at all.
Context: My clients' ERP system calls my app, and the route creates a shopifyDraftOrder in Shopify with a GQL mutation. Usually this will (at some point) auto-create a shopifyOrder and tie it to the shopifyDraftOrder. These relationships should automatically update in Gadget, yes?
Problem: I'm getting back several (around 40 out of the first 50) shopifyDraftOrders that have no shopifyOrder attached, yet Shopify itself can identify what draft order it came from (e.g. "created from draft order #D804"). I can query both shopifyOrder for the draftOrder field, and query shopifyDraftOrder for the order field. Both come back null, even for an order/draft order that (in Shopify) shows as being attached both ways.
What would cause these to suddenly stop attaching to each other?