Skip to content

types: make BufferToBinary avoid Document instances#15123

Merged
vkarpov15 merged 2 commits intomasterfrom
vkarpov15/gh-15122
Dec 22, 2024
Merged

types: make BufferToBinary avoid Document instances#15123
vkarpov15 merged 2 commits intomasterfrom
vkarpov15/gh-15122

Conversation

@vkarpov15
Copy link
Collaborator

Fix #15122

Summary

The problem in #15122 is that BufferToBinary is drilling into Document instances, and when a user does Document & IChild we can't reliably infer the raw document type, so we need to skip that case.

Examples

@vkarpov15 vkarpov15 added this to the 8.9.3 milestone Dec 19, 2024
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Dec 21, 2024
Co-authored-by: hasezoey <hasezoey@gmail.com>
@vkarpov15 vkarpov15 merged commit bbca321 into master Dec 22, 2024
5 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-15122 branch December 22, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typescript Types or Types-test related issue / Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The error caused by Binary when using lean queries still exists in 8.9.2

2 participants