{"html_url": "https://github.com/simonw/datasette/issues/259#issuecomment-392214791", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/259", "id": 392214791, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MjIxNDc5MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-25T23:43:15Z", "updated_at": "2018-07-29T00:56:03Z", "author_association": "OWNER", "body": "We may need to derive a usable name for each of these relationships that can be used in eg querystring parameters.\r\n\r\nThe name of the join table is a reasonable choice here. Say the join table is called `event_tags` - the querystring for returning all events that are tagged `badger` could be `/db/events?_m2m_event_tags__tag=badger` perhaps?\r\n\r\nBut what if `event_tags` has more than one foreign key back to `events`? Might need to specify the column in `events` that is referred back to by `event_tags` somehow in that case.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 322787470, "label": "inspect() should detect many-to-many relationships"}, "performed_via_github_app": null}