mongodb_ecto
mongodb_ecto copied to clipboard
MongoDB adapter for Ecto
This is a list of known compatibilty issues with Ecto 2.1. Feel free to tackle any of these tasks. * [ ] on_conflict resolution * [ ] or_where support I...
I am trying to query the distinct values of a field in all the documents as in: https://docs.mongodb.com/manual/reference/method/db.collection.distinct/ I tried to use the distinct function provided by Ecto (https://hexdocs.pm/ecto/Ecto.Query.html#distinct/3), but...
I will admit that I am not 100% that `in` is causing this issue, I have not dug deep enough into it. ``` MyApp.Repo.all(from l in MyApp.Location, where: l.id in...
I'm trying to perform a where clause with a `$in` but without success: ``` Hookshot.Hook.with_events([1, 2]) |> Hookshot.Repo.all ** (Ecto.Query.CastError) web/models/hook.ex:63: value `[1, 2]` in `where` cannot be cast to...
Basically the equivalent of `Ecto.Adapters.SQL.query`. We need to discuss what the API should be like because the driver exposes multiple functions where the SQL drivers only have one. I would...
After #31 we need to add Mongo guide for Phoenix, similar to http://www.phoenixframework.org/docs/using-mysql
The prefixes should change the database, once it's possible from the driver. They should be supported in all queries and in migrations: https://github.com/elixir-lang/ecto/issues/1004
Removed in @93f1539
Having such schema: ``` # ProjectUser module schema "project_users" do belongs_to :project, Project embeds_many :stats, ProjectUserStat, on_replace: :delete end ``` ``` # ProjectUserStat module embedded_schema do field :date, :string end...