elixir-mongo / elixir-mongo/mongodb_ecto
_id always blank in embedded documents
Open
- Dominant language
- Elixir
- Stars
- 378
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
Using `embedded_schema` like in the example below always just ends up with a null `_id` in the database. I would expect it to populate the object id just like it does when using a regular `schema`.
```
@primary_key {:id, :binary_id, autogenerate: true}
embedded_schema do
field :name, :string
end
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.