Ash FrameworkAF
Ash Frameworkโ€ข6mo agoโ€ข
5 replies
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]


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
Was this page helpful?