chaitanya
Hello,
I am very new to Phoenix. I am trying to develop an app with Mongodb as database. i have now installed latest version of Phoenix i.e. 1.4. I believe this is a very basic question to ask, but kindly bear with it.
I have searched for a solution to use mongodb and found few links which are kind of bits and pieces and i was not sure to which version of Phoenix they refer to. So here are my questions.
- While using mongodb with phoenix 1.4, do we need Ecto? (I tried to create new project with “mix phx.new hello --database mongodb”, but it failed to recognize mongodb. only options available are postgres, mysql, mssql).
– as i have read in an article that mongodb driver can be used. so not sure if ecto is reqiured. - is there any link which can walk through the entire process of creating a new project with mongodb.
Thanks for taking time in reading my question.
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Kia ora,
We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
Hello,
I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First 6 of 6 Posts
peerreynders
Not as basic as you may think as MongoDB isn’t as popular as it is in other communities.
Hex: mongodb, mongodb_ecto
Have you looked at
yet?
It has been done … but pretty much expect this attitude:
CRUD
Ankhers
No you do not. The mongo ecto adapter has not had work done on it for a little while. With the release of Ecto 3.0, I was going to try and get it updated, but have not yet found the time.
Not that I am aware of. Just add the mongodb package to your deps list. The documentation (linked by @peerreynders) shows the basics of using it. If you have any questions or concerns, feel free to PM me here, on the Elixir slack or on IRC.
chaitanya
thank you @peerreynders and @ankhers for your inputs. As suggested by @peerreynders i will try practicing and getting my hands around phoenix with postgresql.
I will update on my progress.
Once again thanks for your time in addressing my concerns. it helped.
pierreabreup
hi @chaitanya, I did an implementation of Mongodb and Phoenix. You can check in my repository GitHub - pierreabreup/graphqlapi-with-elixir-and-mongo · GitHub
chaitanya
Hi @pierreabreup. The solution is amazing. And I really appreciate you recollecting this thread and updating me. I am currently checking GraphQL. I will make use of your work and will try to contribute to the GitHub respository.
mkunikow
ehhh No SQL, No SQL is passe. Now is New SQL
SQL → NO SQL → and here we back again to SQL or rather New SQL (like google spanner, or crouch db)
Also Redhat ditched Mongo DB for PostgreSQL after Mongo DB changes licence
MongoDB changed licence when AWS was hosting own MongoDB without any contribute back to MongoDB
. After MongoDB changed licence AWS screw MongoDB again creating theirs own version of MongoDB called documentdb Amazon DocumentDB- Serverless, fully managed, MongoDB API-compatible document database
https://www.awsgeek.com/posts/Amazon-DocumentDB/
So MongoDB is screwed now
as open source database.