Let's say i have a collection called news. which includes newses. let's say 10. now how can i send just latest 3 to front end ?
You can use ?limit=3 in the Rest API when you're getting the news. See:
https://payloadcms.com/docs/queries/pagination#pagination-controlsIf you want the
latest 3you need to combine ^ with
https://payloadcms.com/docs/queries/overview#sortsorting
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.