Jesse Williams
AEAsh Elixir
•Created by Jesse Williams on 5/28/2025 in #support
Authenticating an SPA via graphql
Anyone have any tips for authenticating an SPA via graphql? I've got basic ash_authentication boilerplate user/token resources setup. I'm wondering if the best way to do this is to wire up my own query/mutation that can set the token as a cookie... kinda trying to keep the elixir side more purely graphql, so my SPA is the main UI interface and I'm not using the ash_authentication_phoenix routes.
49 replies
AEAsh Elixir
•Created by Jesse Williams on 5/6/2025 in #support
Filtering by/selecting calculations when working with direct ecto queries
I have a use case where I'm needing to reach for Ecto directly. I'm trying to see if it's possible to filter by a calculation (or even just select it) when doing this. I can of course duplicate my calculation logic, but looking for a way to avoid that if possible 😅
11 replies