prorm API Reference
    Preparing search index...

    Function Fetch

    • Decorator to set FETCH FIRST limit. Limits the number of rows returned by a query.

      Usage:

        @Fetch(100)
      async *getTopUsers() {
      return await User.findAll({ limit: 100 });
      }

      Parameters

      • limit: number

        Number of rows to fetch

      Returns MethodDecorator