Strapi Populate and Field Selection Explained [ Part 1 ]
Strapi Populate and Field Selection Explained [ Part 1 ] Did you know Strapi Cloud is coming? Join the waiting list https://strp.cc/try-cloud In this part one video, we will introduce Strapi Populate, a feature that allows you to populate relations, components, and dynamic zones in your Entity Service API. We will take a look at how to use populate to populate root-level relations using the "*" wild card filter parameter. Also on how to use the qs library to write human-readable queries that are easier to read than HLS syntax. In future videos, we will cover deeply nested populations when going two levels deep or more and how to use field selection to only return fields that you need in the API response. Using qs example: https://replit.com/@paulbrats/qs-population-blog-demo ------------------------------------------------------------------------------------------------------------------------ Chapters ------------------------------------------------------------------------------------------------------------------------- 00:00 Introduction 00:25 Populate and field selection documentation 01:12 Making out the first request 403 01:37 Giving permissions to API 02:00 Initial Population does not populate relations 02:55 Populate wild card explain 03:42 Populate wild card in action 05:06 HLS vs Object notation using qs 06:00 Making a query using the qs library 06:57 Up Next. ------------------------------------------------------------------------------------------------------------------------ Resources ------------------------------------------------------------------------------------------------------------------------ Strapi Events: https://strp.cc/events Find help on Discord: https://strp.cc/discord-events Find help in our Forum: https://strp.cc/40EvYp0 ------------------------------------------------------------------------------------------------------------------------ About ------------------------------------------------------------------------------------------------------------------------ Learn more with Paul - https://www.youtube.com/c/codingafterthirty Get started with Strapi: https://strapi.io/ Try live demo: https://strapi.io/demo Strapi Blog: https://strapi.io/blog
Download
0 formatsNo download links available.