mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
4f580c6152
<!-- The PR description should answer 2 important questions: --> ### What Add support for ordering by nested fields. Example query: ```graphql query MyQuery { InstitutionMany(order_by: { location: { city: Asc } }) { id location { city campuses } } } ``` This will order by the value of the nested field `city` within the `location` column. <!-- What is this PR trying to accomplish (and why, if it's not obvious)? --> <!-- Consider: do we need to add a changelog entry? --> <!-- Does this PR introduce new validation that might break old builds? --> <!-- Consider: do we need to put new checks behind a flag? --> ### How Extends GraphQL schema generation to register and then build GraphQL input types for nested `OrderByExpression` metadata objects. During IR generation, order by input arguments containing nested fields are flattened out into the `field_path` property of NDC `OrderByTarget`. ### Limitations Does not yet support `orderableRelationships`. I'll do that as as separate PR. <!-- How is it trying to accomplish it (what are the implementation steps)? --> V3_GIT_ORIGIN_REV_ID: 6f4b1e098e60ce7906167b3afcd62de3c8616660 |
||
---|---|---|
.. | ||
auth | ||
compatibility | ||
custom-connector | ||
engine | ||
execute | ||
ir | ||
lang-graphql | ||
metadata-resolve | ||
metadata-schema-generator | ||
open-dds | ||
plugins/pre-execution-plugin | ||
query-usage-analytics | ||
schema | ||
sql | ||
utils |