Here is a raw SQL: SELECT p.*, u.name FROM posts p JOIN users u ON p.user_id = u.id How do I translate it into Ecto query? Is the code above cor ...
Here is a raw SQL: SELECT p.*, u.name FROM posts p JOIN users u ON p.user_id = u.id How do I translate it into Ecto query? Is the code above cor ...
I'm currently working in a project using GraphQL with Absinthe. I have a problem with the query of multiple tables which has an arg (recieve from Grap ...
I was preparing a Docker image for my umbrella elixir application. I am using esbuild for assets compilation. esbuild is installed using as npm packag ...
In my phoenix app, I am trying to load a bunch of data and make them accessible to my root template (across all pages). To my knowledge, this is done ...
I'm trying to implement a blog with Elixir and Phoenix. The posts are written in markdown, and the files are in priv/posts directory. I succeed to im ...
I am using Fly.io to deploy my Phoenix (Elixir) App. I am also using .env for my secret keys. Error: **(File.Error) could not read file ".env": no su ...
I have an M2M relationship established between a users table and a plans table. They're joined through a users_plans table. When I create a new plan, ...
I've got a "Topics" context, which defines a single "topics" table in my db, and it only has one field "title", like so: topic.ex I run a command ...
I have a set of Events, that have a date. The dates are only given in full days (e.g. 2022-08-06). To keep track of the order of Events within one day ...
I'm building out a view to list/edit/destroy users within the admin namespace, using LiveView (new to Phoenix Elixir). I cannot for some reason, use t ...
I have a simple data: When I test my API with postman, everything works. But when I write a unit test for controller, I got this error: this is ...
I followed this tutorial https://tailwindcss.com/docs/guides/phoenix Everything appears to work fine except for the javascript and the annoying phoeni ...
It is too slow to pull the whole data from Hbase. I only need to process data for one hour. So I want to know whether I can specify the SQL in config ...
I have this app where there is a Games table and a Players table, and they share an n:n association. This association is mapped in Phoenix through a ...
I can't figure out how to do the check correctly to hide the actions from the user <%= if @current_user.id == @post.user_id do %> <span> ...
I'm new in phoenix. I need to display all the posts and pictures to them on the main page. I written below code in my index template: <img src="&l ...
I am trying to delete an object using the s3 Rest API from my Elixir + Phoenix project. I can't seem to figure out what to set my s3 policy at such th ...
how can I populate a part of or a whole ~H sigil with a variable? I’m trying to use it to insert some existing html table markup into a Liveview page. ...
In reviewing Google Bigtable I found that it does not offer the ability to define secondary indices. So if you have a billion transactions, for 10 mi ...
Recently, I’ve been working on updating a legacy repo. I’ve had to update Erlang, Elixir, Phoenix and a lot of dependencies. The repo is most likely g ...