Ash + Phoenix.Sync - thoughts on how to get them to work together?

Hi!

Any thoughts on how to get the above 2 to work together?

Best,
Terry

Right now AFAIK Phoenix.Sync essentially maps an Ecto query to a shape, and those Ecto queries are quite limited at the moment, so there isn’t a way to take an arbitrary ash query and turn it into a shape etc.

What kind of integration are you looking for?

I have lambda functions that compute on the db and modifies the tables accordingly.

On the app side, of course its a LV → business logic → Ash → DB stack. So trying to cook up a design that lets the LV update when the data tables have been changed (by the lambda functions)

Yeah it’s an interesting question :slight_smile: You could definitely set something up with Phoenix.Sync treating your Ash resources as Ecto schemas. How you actually hook that up to do useful things is kind of its own question :slight_smile: I’ve had some chats with them about making something that works directly w/ Ash but nothing has materialized as of yet.

2 Likes