Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
What is the __metadata__ field in new versions of Ash? - Ash Framework
AF
Ash Framework
โข
3y ago
โข
6 replies
Blibs
What is the __metadata__ field in new versions of Ash?
I just updated my Ash to the latest version 2
.13
.2
.
After that
, I noticed that a lot of my unit tests stopped working basically because I was comparing resources
.
From what I can see
, when I create the resource
, the
__metadata__
__metadata__
field will be a empty map
%{}
%{}
, but when I fetch the same resource with a
read
read
action
, it will contain a key called
selected
selected
in that map with the list of fields that were selected
.
Was this a new addition
?
Is there some way to disable that in tests so I can compare resources maps instead of having to process then before doing my asserts
?
Ash Framework
Join
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
2,193
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Missing __spark_metadata__ field in Ash.Notifier.PubSub.Publication struct
AF
Ash Framework / support
6mo ago
What is the equivalent of Ecto's Repo.exists? in Ash?
AF
Ash Framework / support
3y ago
Virtual field in Ash attribute
AF
Ash Framework / support
4y ago
AshMoney with Ash.Generator
AF
Ash Framework / support
9mo ago