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
ZachDaniel
ZachDaniel2y ago
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?
jart
jartOP2y ago
yes oh. it's not a get it's a read_one
ZachDaniel
ZachDaniel2y ago
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
jart
jartOP2y ago
👍

Did you find this page helpful?