Limiting action sort and filter
I'm going through and starting to audit my setup for sorting and filtering. Ideally, it would only be possible to sort and filter on a limited set of attributes/relationships. I can block anything I don't want with
If there is a way to do this, is there also a flag that would set these to
This seems to be in-line with the planned changes for Ash 3.0, re:
filtering_on policies, but I'd like to get it out of my GraphQL schema and JSON:API altogether. Is there a way to define at the action and/or resource level which attributes and relationships are allowed to be sorted and filtered on?If there is a way to do this, is there also a flag that would set these to
[] by default globally? I'd prefer to explicitly allow rather than deny.This seems to be in-line with the planned changes for Ash 3.0, re:
accept defaulting to [].