1
Many to Many field with a context field which is another relation?
Source: directus/directus#22356 · opened by @wiz256
Summary I have collections: cities (id, name) routes (id, name) routeCityStops (id, routeId, cityId, address, departureTime) routeFares (routeId, cityFromId, cityToId, priceValue) What is the best way to show in routes item details all routeFares belonging to this route as a table with ability to add/modify routeFare records? Many2Many did not help me because routeFares has 3 relations (because of cityFromId, cityToId and routeId). How to properly configure such setup for model with Route and RouteFares? Motivation Need to support "tripple" relationship like for routeCityStops in: cities (id, name) routes (id, name) routeCityStops (id, routeId, cityId, address, departureTime) routeFares (routeId, cityFromId, cityToId, priceValue) Requirements List Basically I want: 1. being on route item details page to see all routeFares related to this route with cityFrom, cityTo and price values 2. when new routeFares record is added from routes item …
No pledges yet. Be the first to back this.
Comments
Similar requests
Add the abillity to select type of relation field in many to any relation
2 votes · 0 comments
Default value field present in O2M field creation
3 votes · 0 comments
Search in relational/display fields
94 votes · 0 comments
Add search & autocomplete functionality for relational fields in filters
7 votes · 0 comments
Relational field (M2M) as Dropdown in Admin UI Filters.
3 votes · 0 comments
No comments yet.