Skip to content

Update type for findOneAndUpdate options #721

@ejmartin504

Description

@ejmartin504

Currently we use the mongodb type for FindOneAndUpdateOptions options for findOneAndUpdate (https://github.com/plexinc/papr/blob/main/src/model.ts#L818)

However, a developer looking up the docs for these options will see returnDocument defaults to "before", while it defaults to "after" in papr

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