Skip to content

Upsert should not take an "on_conflict" argument #19

@rwillians

Description

@rwillians

Upsert relies under the hood on Insert operation. Unlike the insert operation though, upsert shouldn't take an on_conflict argument because the action of upsert already expected the record to get replaced (updated) if there's a conflict.

https://github.com/TurtleAI/derive/blob/master/lib/derive/ecto/operation.ex#L46

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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