mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-07 08:13:18 +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 |
||
---|---|---|
.. | ||
bin/build-schema-from-metadata | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |
schema
Provides functions to resolve the Open DDS metadata, generate the GraphQL scehma from it, and execute queries against the schema.