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 }); } Copy
@Fetch({ first: 100, offset: 50 }) async *getPageUsers() { return await User.findAll({ offset: 50, limit: 100 }); }
Fetch options with limit and optional offset
Decorator to set FETCH with offset. Useful for pagination.
Usage: