Hello, I am creating an api for a simple wallpaper app. It only has two components.
- Wallpaper Component (contains the images)
- Tags (groups all the wallpapers into groups)
I am facing a problem about how to query the database as I need to do both populate and pagination.
By default tags api do not show wallpapers. but when I populate it to see wallpaper, I no longer can use pagination. It would be showing all the data whether I require it or not.
Same is the case with wallpapers.
It is a problem since single tag contains a lot of wallpapers and I cannot send all of them to client everytime.
System Information
- Strapi Version: 4.5.1
- Operating System: Windows
- Database: postgres
- Node Version: 14.19.1
- NPM Version: 6.0.0
- Yarn Version: