papr icon indicating copy to clipboard operation
papr copied to clipboard

Update type for `findOneAndUpdate` options

Open ejmartin504 opened this issue 2 years ago • 0 comments

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

ejmartin504 avatar Jan 24 '24 15:01 ejmartin504