Building data relations in Strapi

preview_player
Показать описание
Introduction to Strapi: Building data relations in Strapi

In this course, we take a quick look at Strapi v4 and explore it's capabilities, including content type and content management as well as authentication and security.

There are two repositories for this course, one is the Strapi CMS's source and the other is the UI, these can be found here:

---
Рекомендации по теме
Комментарии
Автор

If api/reviews is protected, why do we need to protect api/films as well to populate? Didn't get that part well

shaktarangiras
Автор

How to develop relation through api call, like if new review is created through api call, how i can establish relation between film and that new review using api call, instead of opening strapi admin panel to establish relation between two?

AlanSchooll
Автор

Hi i host strapi on a local server but i cant go to the admin page on a other pc can you help me i found nothing online

spontan_tv
Автор

@strapi What if I want to know which user published the reviews

onthego
Автор

why cant i get collection types by relation without populating all or using deep. seems odd that something would be set up to function like categories but you cant get collection types by relation.

for example making a blog then using the route params(slug) in a collection type request to get blogs by cat, bare in mind that both a main category is needed but one post might also belong to others cats / relations

marleynicolson
Автор

What about population for post and put methods? I have a Task model that I don't want to update it by every user! Each task belongs to one user. Help me plz.

erfanattarzadeh
Автор

What abhout the post request.. if I want add title, released and director with the reviews together with an api call.. how can i do that?
If anyone has the solution let me know

tarachandravishvkarma
Автор

Hey there ! very nice explanation . I just want to know that how i can get the all reviews of a one product using the reviews api end point

stacked-dev
Автор

How could I populate content using xlsx or csv, insted one by one? Thanks

pablov.viteri
Автор

How can I make it to have hierarchical categories?

enzobatista
Автор

Nicely explained 👍
For a change, I would appreciate a tutorial that makes it a bit more explicit. What if "films" is just part of a parent collection? Let's say it's about directors and their work and George Lucas had made "Star Wars", a wildlife documentary and commercials. There would be a "Directors" Collection and listed in it "films" Collection, "Documentation" Collection, "Commercials" Collection. Normally these would be displayed as nested json in the REST API as "films": { "data": [ {"id": 1, "attributes": "title": "Star Wars" ... etc. I only get an "id" displayed there and nothing else. What should I do so that not only the ID is displayed in the REST API, but all information from the collection is transferred? Is there a tutorial for this? I would be happy about any useful information, because I am currently facing this exact problem. Thanks in advance

marco_di
Автор

To get films (in Insomnia) i had to first go to [ settings > users and permissions plugin > roles > public > Film ] and then enable "find". Nothing was publicly accessible per default for me, and i don't think it has been part of the tutorial to make it that? Otherwise really nice tutorial.

månemannmånemann