
2: REST vs GraphQL with Ben Wilson
Thinking Elixir Podcast
00:00
Can I Deprecate a REST API in Favor of the Absent Clients?
In our front end live view app, we are ultimately making GraphQL mutation calls. We were writing sort of Ecto embedded schema structs that would represent our GraphQL inputs and we'd like build forms around them. And we rapidly realized this was a big mistake because the form might have data that isn't actually important for that particular thing or is representing some totally new third value. So what we did for all of that is we started writing Ectoembedded schemas for the really represented the form state. It makes it easier at tests around that to tell you what's going on versus like, you know, we've all written code that takes string key JSON and fiddles
Transcript
Play full episode