Ash Record without persitance to the database
wout2938:
How can you manually create a record, so I can use it in my code, but not persist it to the database?
wout2938:
For Ash Authentication I want to create anonymous users, for when you’re not logged in
wout2938:
I want to assign them to my session and socket so I can use them, but not persist them to my database until they verify their email
zachdaniel:
You can use manual actions to do things like that
zachdaniel:
the specific thing you’ve mentioned might bring some interesting challenges, but you can read up on manual actions to see how it works
Ash HQ Bot:
Found 7 Guides results in ash for query “manual actions”:
- Manual Actions: https://ash-hq.org/docs/guides/ash/2.9.9/topics/manual-actions
- Actions: https://ash-hq.org/docs/guides/ash/2.9.9/topics/actions
- Get Started: https://ash-hq.org/docs/guides/ash/2.9.9/tutorials/get-started
- Identities: https://ash-hq.org/docs/guides/ash/2.9.9/topics/identities
- Policies: https://ash-hq.org/docs/guides/ash/2.9.9/topics/policies
- Glossary: https://ash-hq.org/docs/guides/ash/2.9.9/topics/glossary
- Embedded Resources: https://ash-hq.org/docs/guides/ash/2.9.9/topics/embedded-resources
wout2938:
Thanks <@197905764424089601> I’ll look into that