GraphQL: Disable filter generation for some read actions?
I am wiring up some AshAuthentication actions to a GraphQL API and I've noticed that it generates
filter
arguments for actions like signIn(email: String!, password: String!)
which is nonsensical. I can see the derive_filter? boolean
option for the whole resource, but is there a way to do it for a single query or mutation?4 Replies
Not currently, no.
but the idea was that eventually someone would need it and it would have to be added
it generates a filter argument even on a
get
?yes
oh. it's not a
get
it's a read_one
you can do
identity false
on a get
and it won't add the filters for a primary key or an identity
we still want the ability to disable filters on arbitrary queries though👍