You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Payment instructions set in admin are not returned from FE API with Payments query (or any other query returning payment).
To Reproduce
In administration fill in instructions for payment
Run graphql query for payments
{
payments {
name
instruction
}
}
See payments are null
Expected behavior
Payments are returned properly
Additional context
It seems like the field in graphql type is named in singular (instruction), while getter in the payment class is in plural (getInstructions()).
Renaming the field in graphql type should help, but it will be a BC break. It's possible to introduce a resolverMap for instruction field, or add new getter to payment (getInstruction())
The text was updated successfully, but these errors were encountered:
Describe the bug
Payment instructions set in admin are not returned from FE API with Payments query (or any other query returning payment).
To Reproduce
Expected behavior
Payments are returned properly
Additional context
It seems like the field in graphql type is named in singular (
instruction
), while getter in the payment class is in plural (getInstructions()
).Renaming the field in graphql type should help, but it will be a BC break. It's possible to introduce a resolverMap for instruction field, or add new getter to payment (
getInstruction()
)The text was updated successfully, but these errors were encountered: