"Run Code" Block Output Not Registering

Is there a bug in Flow? I’ve put together this Run Code block but it doesn’t seem to yield the results I’m expecting. It is received data from a previous “Product variant inventory quantity changed” step. When I run it, I keep getting the default output. The Run Code Block:

… and this is from the Run Detail for this block:

So, what gives? The Output seems to not be changing at all, no matter what I put into the “Define outputs” block. What IS appearing is the default that appears when the code block is first created.

Any and all help would be appreciated!

Thanks.

Your schema says a “payload” object is coming out, but you instead pass it a root-level object with all those payload fields.

This repo has a bunch of examples, like this flow-code-examples/run-code-examples/order-sum-products/output.graphql at main · Shopify/flow-code-examples · GitHub