`Ash.read_one!(User, email: "some@email.com")` shouldn't work, correct?

Ash.read_one!(MyApp.User, email: "some@email.com")

I came across this example in the documentation and I’m assuming the documentation is outdated.

Or does this actually work with some setup in the User resource?

Oh…no you’re right. I think that was badly copied from Ash.get :cry: PR/issue welcome!

2 Likes