(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:
Dustin 2018-03-20 12:17:07 +01:00 committed by GitHub
parent e7dfc222fa
commit 9c9225a8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}
}