the type QueryWithHelpers is not recursive #10040
Labels
needs repro script
Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue
typescript
Types or Types-test related issue / Pull Request
Milestone
Currently, to chain queries we can use
QueryWithHelpers
which returns the query and additional helper functions that also add conditions and return the query.This is good for a single chain and there it stops since
QueryWithHelpers
returnQuery
:)The old typings
@types/mongoose
used to have the mainQuery
(calledDocumentQuery
there) which returned all results with the THelpers added and also exposedQuery
with an empty THelpers which had the same affect.This should solve the issue
The text was updated successfully, but these errors were encountered: