How to disable the filters input on list AshGraphql list queries?

In some cases, I want to add a read action as an GraphQL API but I don’t want to allow the user to filter it in any way, in other words, I want to api to be generated without the filters input.

I couldn’t find a way to do that looking at the documentation, is there some way?

Also, it would be great to be able to set which fields I want to allow filtering in the filters field instead of adding all possible ones there.

We don’t currently have a way to configure what is allowed in the filter argument, but you could make your own custom Map type using Ash.Type.NewType that defines exactly what you want to allow, and then do something like:

prepare fn query, _ -> 
  Ash.Query.filter_input(query, query.arguments.filter)
end

As for disabling it entirely, we have an option that does it for the whole resource, but not per query. I’d accept a PR to extend this option to queries as well: AshGraphql.Resource — ash_graphql v1.7.7?

Otherwise, could you open a proposal for a query-level derive_filter? option and I will try to get to it in the near future?