Followed this example to build a discount function, however unable to get the function to execute when visiting the cart.
I installed the app on a dev store with plus plan. Not seeing any logs and when querying the function via graphql api I see that the “inputQuery” attribute is null.
I found the issue. I needed to create an automaticAppDiscount and ensure that it was active. Previously I had created one, but it was inactive due to the endsAt date being set in the past.
Also inputQuery is still null after this fix, so I think it is unrelated.