[pro] Pundit integration fails with plain Array field #2008
Every mutation in my GraphQL API may optionally return a list of validation errors (as data). This is typed as:
field :errors, [ServiceError], null: true
Now I'm adding Pundit integration, and my tests fail with:
The problem is that
This logic is not problematic for Relations, because a Relation is not an Array.
Disable scoping logic for plain arrays. It's a conceptual mismatch.
The text was updated successfully, but these errors were encountered:
Thanks for the bump here, this slipped off my radar over the holidays