prorm API Reference
    Preparing search index...

    Function FetchWith

    • Decorator to set FETCH with offset. Useful for pagination.

      Usage:

        @Fetch({ first: 100, offset: 50 })
      async *getPageUsers() {
      return await User.findAll({ offset: 50, limit: 100 });
      }

      Parameters

      • options: { first: number; offset?: number }

        Fetch options with limit and optional offset

      Returns MethodDecorator