Skip to content

Commit

Permalink
improvement: Add a top-level NOT filter, along with AND and OR filter…
Browse files Browse the repository at this point in the history
…s. (#94)
  • Loading branch information
tunchamroeun authored Oct 1, 2023
1 parent 46cd22d commit 4c86d31
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/resource/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,17 @@ defmodule AshGraphql.Resource do
of_type: resource_filter_type(resource)
}
}
},
%Absinthe.Blueprint.Schema.FieldDefinition{
identifier: :not,
module: schema,
name: "not",
type: %Absinthe.Blueprint.TypeReference.List{
of_type: %Absinthe.Blueprint.TypeReference.NonNull{
of_type: resource_filter_type(resource)
}
},
__reference__: ref(__ENV__)
}
]
else
Expand Down

0 comments on commit 4c86d31

Please sign in to comment.