Automattic / Automattic/monk

Missing typing for collection.update({},{},{multi: true})

Open
#314 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
180
PR merge metrics
No merged PRs in 30d

Description

monk current index.d.ts does not have definition for options ```{multi: true}``` for ```collection.update```. i think it great to have it since monk already support it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open index.d.ts and inspect the collection.update declaration and its existing option types. Confirm how the multi option is represented in Monk's supported update API, then add the corresponding typing so collection.update({}, {}, {multi: true}) is accepted and the declaration remains consistent with nearby options.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, typescript
Domain
databases
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.