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
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 itThat did the trick, thanks!