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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions