Skip to content

Providing custom _id for documents #154

Description

@AdamPzpn

Trying inserting data into foregin table ends with ignore for _id parameter.

Example:
INSERT INTO warehouse VALUES (uuid_generate_v4()::text, 2, 'Laptop', '2015-11-11T08:13:10Z');

Creates:
"_id" : ObjectId("53720b1904864dc1f5a571a0"),
"warehouse_id" : 2,
"warehouse_name" : "Laptop",
"warehouse_created" : ISODate("2015-11-11T08:13:10Z")

How can I insert literal _id as string into entity?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions