mark Ash.Resource extension attributes as public
Other than redefining the extension attributes in my own resource, is there a better way?
I want to expose
:amount
and other relationships defined on AshDoubleEntry.Transfer
without having to define these attributes in my own resource. I saw the graphql extension has show_fields
but it seems the attributes need to have public? true
as well.Solution:Jump to solution
🤔 you could write your own extension that would mark amount as public after
AshDoubleEntry.Transfer
creates it2 Replies
Solution
🤔 you could write your own extension that would mark amount as public after
AshDoubleEntry.Transfer
creates itnot beautiful but its the only way you could do it without some change in the underlying tools
alternatively, I'd accept a PR that adds options for fields to make public in
AshDoubleEntry
for example