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