-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: 5.9.0, 6.7.0
-
Component/s: None
Use Case
As a user
I want to be able to pass tuple or ReadonlyArray to insertMany
So that I don't have to cast the type
current type is too restrictive (assuming that the method doesn't mutate it's `docs` argument)
User Impact
- ReadonlyArrays are not accepted by the insertMany API. Using this type permits both readonly and mutable arrays, so readonly should be preferred since the driver does not mutate the array.
Dependencies
- None
Unknowns
- None
Acceptance Criteria
Implementation Requirements
- insertMany should accept ReadonlyArray<OptionalUnlessRequiredId<TSchema>> for the docs argument.
Testing Requirements
- Add tsd type tests that a readonly array and mutable array are accepted to insertMany
Documentation Requirements
- None
Follow Up Requirements
- See linked tickets