I have a relation with a specialist (main article) below code:
“specialists”: {
“type”: “relation”,
“relationship”: “ManyToOne”,
“purpose”: “api::specialist.specialist”,
“inversedBy”: “articles”,
“required”: true
},
And the code itself is essentially a specialist with the link article:
“articles”: {
“type”: “relation”,
“relation”: “oneToMany”,
“target”: “api::article.article”,
“mappedBy”: “specialist”
},
This topic has been created from a Discord post (1271457390482690148) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord