I found the docs on relations for custom integrations but it doesn’t have an example of the required schema for a many-to-many relation. I’m not sure what’s required on either property to make it all work. Does anyone have an example schema of many-to-many relations?
It’s pretty much the same as the many-to-one schema, e.g.
"repositoryIds": {
"type": "text",
"name": "Repository Ids",
"relation": {
"cardinality": "many-to-many",
"name": "Repositories",
"targetName": "Pull Requests",
"targetType": "repository",
"targetFieldId": "id"
}
}
OK, is it required to have the inverse of this on the Repository as well?
Nope. Just define it from one side of the relation