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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

DiscountNode metafield not showing in input query

DiscountNode metafield not showing in input query

cshsusc
Shopify Partner
2 0 0

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

cshsusc_0-1713837225603.png

 

here is my input query defined:

cshsusc_1-1713837287461.png

 

cshsusc_2-1713837297583.png

 

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

cshsusc_6-1713837697285.png

 

 

 

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

 

cshsusc_5-1713837487847.png

 

What am I doing wrong?

thanks

Reply 1 (1)

ShaunStarttin
Shopify Partner
20 3 4

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.