Persist embedded resources as :text instead of :map
In my app I'm using Cocktail (https://hexdocs.pm/cocktail) to manage scheduled events which I'd like to save to a text field using
What I have so far:
I use an embedded schema to generate the API used in LV forms and GraphQL
Which I use in another resource
And then realized that embedded schemas are persisted as maps and I haven't found a way to change this behaviour
I've also briefly tried setting up a custom type instead without much success.
Cocktail.Schedule.to_i_calendar/1.What I have so far:
I use an embedded schema to generate the API used in LV forms and GraphQL
Which I use in another resource
And then realized that embedded schemas are persisted as maps and I haven't found a way to change this behaviour
I've also briefly tried setting up a custom type instead without much success.
