GraphQL discountCodeBasicUpdate Mutation Doesn't Accept Metafields?

Hi!

I am seeking to set a Metafield per DiscountCodeNode, so I can store an additional value I require per discount.

  • I was able to successfully create a new Metafield with owner type of DISCOUNT

  • To then set a Metafield value for a particular discount, it appears I would use need to use both discountCodeBasicUpdate and discountCodeAppUpdate, as there’s not a more generic discountCodeUpdate.

  • discountCodeAppUpdate has the Metafield object available, which is great!

  • But what’s odd is that discountCodeBasicUpdate does not.

  • The REST API also does not appear to support what I am looking to do.

Questions:

  • Is it possible to mutate a DiscountCodeNode in general, and set the Metafield from there?

  • If not, how would I be able to use discountCodeBasicUpdate to set the Metafield?

Any help would be greatly appreciated, thank you!