Skip to content

_id always blank in embedded documents #184

Description

@bdtomlin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions