mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 08:04:51 +00:00
(doc) fix collection name in many-to-many example
Not sure if I understand the example correctly, but with the given config it does not work for me. Shouldn't be the collection names the other way round?
This commit is contained in:
parent
e7dfc222fa
commit
9c9225a8cd
@ -271,7 +271,7 @@ A `product` can be related to many `categories`, so a `category` can have many `
|
||||
{
|
||||
"attributes": {
|
||||
"categories": {
|
||||
"collection": "product",
|
||||
"collection": "category",
|
||||
"via": "products",
|
||||
"dominant": true
|
||||
}
|
||||
@ -286,7 +286,7 @@ A `product` can be related to many `categories`, so a `category` can have many `
|
||||
{
|
||||
"attributes": {
|
||||
"products": {
|
||||
"collection": "category",
|
||||
"collection": "product",
|
||||
"via": "categories"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user