home / docs / sections

sections: changelog:through-for-joins-through-many-to-many-tables

This data as json

id page ref title content breadcrumbs references
changelog:through-for-joins-through-many-to-many-tables changelog through-for-joins-through-many-to-many-tables ?_through= for joins through many-to-many tables The new ?_through={json} argument to the Table view allows records to be filtered based on a many-to-many relationship. See Special table arguments for full documentation - here's an example . ( #355 ) This feature was added to help support facet by many-to-many , which isn't quite ready yet but will be coming in the next Datasette release. ["Changelog", "0.29 (2019-07-07)"] [{"href": "https://latest.datasette.io/fixtures/roadside_attractions?_through={%22table%22:%22roadside_attraction_characteristics%22,%22column%22:%22characteristic_id%22,%22value%22:%221%22}", "label": "an example"}, {"href": "https://github.com/simonw/datasette/issues/355", "label": "#355"}, {"href": "https://github.com/simonw/datasette/issues/551", "label": "facet by many-to-many"}]
Powered by Datasette · Queries took 1.41ms