mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 21:03:09 +12:00
fix: don't show non-predicate operators in filters
This commit is contained in:
parent
11aa74f4df
commit
e61f75ac40
1 changed files with 3 additions and 1 deletions
|
@ -784,7 +784,9 @@ defmodule AshGraphql.Resource do
|
|||
type = attribute_or_aggregate_type(attribute_or_aggregate, resource)
|
||||
|
||||
fields =
|
||||
Enum.flat_map(Ash.Filter.builtin_operators(), fn operator ->
|
||||
Ash.Filter.builtin_operators()
|
||||
|> Enum.filter(& &1.predicate?)
|
||||
|> Enum.flat_map(fn operator ->
|
||||
expressable_types =
|
||||
Enum.filter(operator.types(), fn
|
||||
[:any, {:array, type}] when is_atom(type) ->
|
||||
|
|
Loading…
Reference in a new issue