-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add phoenix guide to using Mongo #32
Comments
👍 |
👍 I concur, though I'd add that this is a very badly needed resource right now. Because it appears there are a lot of moving parts in transition with different versions emerging, it is difficult finding a full phoenix stack with dependencies that all work. I've spent the better part of the last week testing and trying to find versions of the following that will all work together, compile, generate, and test without errors:
As of this moment, I do not believe there is a set of current dependency versions where you can create a new phoenix project with a MongoDB database, generate HTML resources, and test cleanly. I've gotten close, but the invalid ID test still fails and needs manual intervention to change the test value for it to work. Additionally, there is almost nothing out there which describes MongoDB schema design and how to accomplish it properly with Ecto. This would be a very valuable resource. |
I agree such a document would be really useful. Contributions are welcome! |
@brado, isn't your list is missing the "Elixir MongoDB" driver from @ericmj? I thought mongodb_ecto was built on top of that. It seems that Ecto is supporting relational databases, except for MongoDB. A lot of MongoDB functionality will not fit easily into Ecto, e.g. m/r, findAndModify, flexible schema, etc, ( -- reasons for using MongoDB instead of a relational DB in the first place). Is it possible to use the MongoDB driver directly (without Ecto?) and/or have/make a new style Phoenix library for MongoDB (similar to Mongoid in Ruby)? Or maybe just some guides... |
@tomjoro I only listed the libraries that I had been working with directly, but it is quite possible that there are other relevant libraries that would need to be included in the list. Whatever the list, the important points are these:
The benefits for documenting these things well:
|
Something like this blog post would be useful: https://zackehh.com/using-mongodb-with-elixir-phoenix-and-ecto/ |
I recently wrote a blog post: https://tomjoro.github.io/2017-02-09-ecto3-mongodb-phoenix/ - This does work well and is stable. But I'm showing how to use ecto with mongodb, but not use mongodb_ecto (mongodb_ecto is a great stuff, but it's not compatible with ecto >= 2). If you check the comments there are some other people who have been similar things. |
@tomjoro You should check out the |
After #31 we need to add Mongo guide for Phoenix, similar to http://www.phoenixframework.org/docs/using-mysql
The text was updated successfully, but these errors were encountered: