PostgREST / postgrest

REST API for any Postgres database
https://postgrest.org
MIT License
23.46k stars 1.03k forks source link

[Resource Embedding] Top-Level Ordering - Multiple Levels feature request #3732

Open rovercoder opened 2 months ago

rovercoder commented 2 months ago

Environment

Description of issue

Top-Level Ordering with multiple nested tables/relationships not yet supported.

Example Query: /rest/v1/restaurant_product?select=price,product(name,country(name, continent(name)))&order=product(country(continent(name))).asc.nullslast

Ordering by this works: product(name) Ordering by this doesn't work: product(country(continent(name)))

Top-Level Ordering Documentation

https://github.com/supabase/postgrest-js/issues/198#issuecomment-1645757355