Decorator to use cursor-based fetching. Useful for processing large result sets in batches.
Usage:
@Cursor({ holdable: true }) async *getAllUsers() { for await (const user of this.findAll({ cursor: true })) { yield user; } } Copy
@Cursor({ holdable: true }) async *getAllUsers() { for await (const user of this.findAll({ cursor: true })) { yield user; } }
Cursor options
Decorator to use cursor-based fetching. Useful for processing large result sets in batches.
Usage: