mongodb_ecto v0.2.1 Mongo.Ecto.ChangeMap View Source

An Ecto type to represent a partial update of a nested document

Using in queries

change = Mongo.Ecto.Helpers.change_map("name", "name")
MyRepo.update_all Post, set: [author: change]

Link to this section Summary

Functions

Casts to database format

Converts to a database format

Change is not a value - it can’t be loaded

The Ecto primitive type

Link to this section Types

Link to this type t() View Source
t() :: %Mongo.Ecto.ChangeMap{field: String.t, value: term}

Link to this section Functions

Casts to database format

Converts to a database format

Change is not a value - it can’t be loaded

The Ecto primitive type