elixir-mongo / elixir-mongo/mongodb_ecto

_id always blank in embedded documents

Open
#184 3 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.