hawkyre

hawkyre

Elixir/Ecto-only project with CRUD API

I’m still learning how to work with elixir and it feels like setting up a CRUD API without a Phoenix frontend is a rather complex task. I’d like to ask if anyone knows of any open-source project that uses Elixir and Ecto to build an API without Phoenix as the frontend to see how they handle some of the problems that I’m having, mostly with building complex associations between tables.

Hopefully, this will help me to understand better the logic behind how to use complex changesets to both create and update new instances of objects. Thanks!!

First Post!

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Are you using Phoenix for the CRUD API controllers or something else?

Last Post!

hawkyre

hawkyre

Yeah, most of the problems come when trying to update complex associations. It’s not really the fact that it is a problem, I’ve been able to kind of pull it off, but more of that I think there has to be a better way to do it than how I am since I’m new to the language. And also, it feels like the way I’m doing it is super fragile and not really something solid or scalable, so I just want to see how others have solved this problem and compare it to how I have.

Where Next?

Popular in Questions Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 131117 1222
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement