codeDiscountNodealways returns null using grapgql

Which app is creating the discounts? It sounds like there could be some implementation issue related to the discounts created by an app (or permissions issue). Are there any errors being logged?