{"action":"created","issue":{"url":"https://api.github.com/repos/michalmuskala/mongodb_ecto/issues/34","labels_url":"https://api.github.com/repos/michalmuskala/mongodb_ecto/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/michalmuskala/mongodb_ecto/issues/34/comments","events_url":"https://api.github.com/repos/michalmuskala/mongodb_ecto/issues/34/events","html_url":"https://github.com/michalmuskala/mongodb_ecto/issues/34","id":97304141,"number":34,"title":"Error while updating a single record","user":{"login":"pma","id":37843,"avatar_url":"https://avatars.githubusercontent.com/u/37843?v=3","gravatar_id":"","url":"https://api.github.com/users/pma","html_url":"https://github.com/pma","followers_url":"https://api.github.com/users/pma/followers","following_url":"https://api.github.com/users/pma/following{/other_user}","gists_url":"https://api.github.com/users/pma/gists{/gist_id}","starred_url":"https://api.github.com/users/pma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pma/subscriptions","organizations_url":"https://api.github.com/users/pma/orgs","repos_url":"https://api.github.com/users/pma/repos","events_url":"https://api.github.com/users/pma/events{/privacy}","received_events_url":"https://api.github.com/users/pma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-26T09:54:22Z","updated_at":"2015-07-26T09:58:54Z","closed_at":null,"body":"I'm getting this error while trying to update a single record with mongodb_ecto:\r\n\r\n```elixir\r\niex(1)> rec = Simple.Repo.get(Weather, \"1d4197db0398eb193c5315cd\")\r\niex(2)> Simple.Repo.update!(Ecto.Changeset.change(rec, temp_hi: 50))\r\n** (FunctionClauseError) no function clause matching in Mongo.Ecto.update/7\r\n    (mongodb_ecto) lib/mongo_ecto.ex:459: Mongo.Ecto.update(Simple.Repo, {nil, \"weather\", Weather}, [temp_hi: 50, updated_at: {{2015, 7, 26}, {9, 53, 9, 0}}], [id: %Ecto.Query.Tagged{tag: nil, type: :binary_id, value: <<29, 65, 151, 219, 3, 152, 235, 25, 60, 83, 21, 205>>}], nil, [], [])\r\n            (ecto) lib/ecto/repo/model.ex:116: anonymous fn/11 in Ecto.Repo.Model.update/4\r\n            (ecto) lib/ecto/repo/model.ex:25: Ecto.Repo.Model.update!/4\r\n```\r\n\r\nUsing Ecto with Postgresql it works:\r\n\r\n```elixir\r\niex(1)> rec = Simple.Repo.get(Weather, 1)\r\niex(2)> Simple.Repo.update!(Ecto.Changeset.change(rec, temp_hi: 50))                      \r\n%Weather{__meta__: %Ecto.Schema.Metadata{source: {nil, \"weather\"},\r\n  state: :loaded},\r\n city: #Ecto.Association.NotLoaded<association :city is not loaded>,\r\n city_id: nil, id: 1, inserted_at: #Ecto.DateTime<2015-07-26T09:39:45Z>,\r\n prcp: 0.0, temp_hi: 50, temp_lo: 23,\r\n updated_at: #Ecto.DateTime<2015-07-26T09:52:40Z>}"},"comment":{"url":"https://api.github.com/repos/michalmuskala/mongodb_ecto/issues/comments/124966460","html_url":"https://github.com/michalmuskala/mongodb_ecto/issues/34#issuecomment-124966460","issue_url":"https://api.github.com/repos/michalmuskala/mongodb_ecto/issues/34","id":124966460,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T09:58:54Z","updated_at":"2015-07-26T09:58:54Z","body":"Please include both Ecto and Mongo.Ecto versions in the report. :)"}}