hawkyre

hawkyre

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!!

Showing Posts 1 to 4

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

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

hawkyre

hawkyre OP

Nope, it is all just elixir, plug, and ecto. Not using Phoenix.

cmo

cmo

Sound like your problems are around joins and associations in Ecto and managing that sort of thing? If so, I don’t think you’re alone in finding that stuff confusing.

Do you want to share the problem you’re having more specifically and the errors you are encountering?

hawkyre

hawkyre OP

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.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
unaware8150
Hello folks! So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
perzanko
Do we have maintainer of absinthe-graphql/dataloader here? We have a PR that we’d like to merge to the library. Relatively small additive...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews