prorm API Reference
    Preparing search index...

    Function Cursor

    • 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;
      }
      }

      Parameters

      Returns MethodDecorator