DiscountNode metafield not showing in input query

Hi,

I built a shipping discount extension and was following the tutorials to pass some data to the input variables.

here is the function configuration for the extension

here is my input query defined:

Here is my discountNode with the metafield and correct json-string value in place (in graphiQL):

However in my partners portal I can see that the metafield is NULL

What am I doing wrong?

thanks

I had a similar issue and in my case the namespace of the DiscountNode was not created with $app:, but I had changed the InputQuery to use $app:. Yours looks correct, but I’ve actually never confirmed what the output of $app: is.