I’m using Strapi 4,
Here is my existing GET request: http://localhost:1337/api/posts?populate=*
What is the query to display the 3 latest data?
Thanks you
I’m using Strapi 4,
Here is my existing GET request: http://localhost:1337/api/posts?populate=*
What is the query to display the 3 latest data?
Thanks you
Try this below query:
http://localhost:1337/api/posts?populate=*&pagination[limit]=3&sort[0]=createdAt:desc