AF
Ash Framework•3mo ago
Failz

mark Ash.Resource extension attributes as public

Other than redefining the extension attributes in my own resource, is there a better way?
extensions: [AshDoubleEntry.Transfer, AshGraphql.Resource]
extensions: [AshDoubleEntry.Transfer, AshGraphql.Resource]
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:
🤔 you could write your own extension that would mark amount as public after AshDoubleEntry.Transfer creates it
Jump to solution
2 Replies
Solution
ZachDaniel
ZachDaniel•3mo ago
🤔 you could write your own extension that would mark amount as public after AshDoubleEntry.Transfer creates it
ZachDaniel
ZachDaniel•3mo ago
not 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

Did you find this page helpful?