Barelydead / strapi-plugin-populate-deep

A Strapi plugin that makes it easier to populate deep content structures
172 stars 39 forks source link

Population of deep content structures using slug #14

Closed thushara318 closed 2 years ago

thushara318 commented 2 years ago

Required System information

Node.js version: v14.15.4 NPM version: 6.14.16 Strapi version: 4.2.0 Database: Postgres : 8.6.0 Operating system: ubuntu 18.10

Population of deep content structures using slug.Any examples?

http://localhost:1337/api/articles/128?populate=deep,2 , works perfectly

http://localhost:1337/api/articles/new-slug?populate=deep,10, when id is replaced with slug it is not working as expected.

smellydelli commented 2 years ago

You can use:

http://localhost:1337/api/articles?filters[Slug][$eq]=new-slug&populate=deep,10

thushara318 commented 2 years ago

@smellydelli Thank you , it works wonderfully.