I'm using TypeORM=^0.2.45 and pg-query-stream=^4.2.3, but I can't seem to be getting any output from the stream:
const stream = await conn
.getRepository(Entity)
.createQueryBuilder("e")
.stream();
stream.on("data", (x) => {
console.log(123);
})
stream.on("result", (x) => {
console.log(1234);
})
How do I get a stream to work? No output, nothing. If I do a simple getMany instead of a stream, at least I get something. The stream doesn't even execute anything; not a single log.