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

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
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
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
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
hariharasudhan94
I would like to know what is the best IDE for elixir development?
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
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New

We're in Beta

About us Mission Statement