Skip to content

add operations are forced to receive a client-side ID due to Knex + MySQL limitations #260

@joelalejandro

Description

@joelalejandro

Due to knex/knex#2682, add operations in MySQL require an id to be passed, otherwise Kurier won't return the resource ID on the result of the operation.

const ids = await this.getQuery().insert(dataToInsert, primaryKeyName);

This insert + RETURNING syntax works only on engines such as PostgreSQL or Oracle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ⌛ Waiting

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions