Skip to content

Elimination of inset/update result does not work on relations #829

Description

@shavitohad

Elimination of inset/update result, introduced in v3.3.0, does not work when used on relations. For example:

await cc._.relations.rights.insert(
                    rightsToSave.map((r) => ({
                      ar_rig_id: r.rig_id,
                      ar_modifay: true,
                    })),
                    { select: 'none' }
                  )
Knex log shows that a select statement is still made when using the new flag.

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