Limit visibility of fields with AshGraphQL

Sorry if this is a dumb question or something more related to GraphQL than to the Ash library itself.. But, is there any way to limt the visibility of some fields when running a graphql query to a resource? For example, let's say that I want to return a list of a resource, but I don't want to send the id because of some security concerns.
2 Replies
ZachDaniel
ZachDaniel3y ago
You'd make the attribute private? true on the resource to prevent it from showing up in the graphQL or at least, thats the simplest way to do it
Blibs
BlibsOP3y ago
That did the trick, thanks!

Did you find this page helpful?