graphql-engine/v3/crates
Daniel Chambers 862ad8e0dc Update ndc-models to latest version which includes new name newtypes (#791)
This PR updated ndc-models to the latest version on main. This version
is still a 0.1.x version, but it now includes all the [new
newtypes](https://github.com/hasura/ndc-spec/pull/156) that wrap
previously stringly-typed things. For example, `ArgumentName`,
`FieldName`, etc.

This pervades across the entire engine, but thankfully the changes are
mostly mechanical repetitive changes. Usually you will see conversions
from `String`-typed variables into the newtypes using this sort of form:
`FieldName::from(string.as_str())`, which is the most efficient way
copying the value (the str slice is copied). Or you will see usages of
the newtype as a raw string by `.as_str()`-ing it. Converting the
newtypes into a String can be done with `.into()` if owned, but if
referenced `.as_str().to_owned()` performs the clone and type
conversion.

Other changes:
* A few minor instances of `ok_or()` usages (or similar) have been
converted into lazy error construction variants (eg `ok_or_else()`)

V3_GIT_ORIGIN_REV_ID: 64a371ae6197ef3be98a6f7cdc4052d654a43da0
2024-07-04 08:58:12 +00:00
..
auth pre-execution plugin middleware (#771) 2024-07-03 12:58:26 +00:00
custom-connector Update ndc-models to latest version which includes new name newtypes (#791) 2024-07-04 08:58:12 +00:00
engine pre-execution plugin middleware (#771) 2024-07-03 12:58:26 +00:00
execute Update ndc-models to latest version which includes new name newtypes (#791) 2024-07-04 08:58:12 +00:00
lang-graphql pre-execution plugin middleware (#771) 2024-07-03 12:58:26 +00:00
metadata-resolve Update ndc-models to latest version which includes new name newtypes (#791) 2024-07-04 08:58:12 +00:00
metadata-schema-generator Move all dependency versions into the workspace file. (#734) 2024-06-20 12:25:55 +00:00
open-dds Update ndc-models to latest version which includes new name newtypes (#791) 2024-07-04 08:58:12 +00:00
plugins/pre-execution-plugin pre-execution plugin middleware (#771) 2024-07-03 12:58:26 +00:00
query-usage-analytics Improvements to query usage analytics data shape (#715) 2024-06-25 07:57:15 +00:00
schema respect relationship comparison capability when generating relationship fields in model filter (#789) 2024-07-02 07:49:10 +00:00
sql Update ndc-models to latest version which includes new name newtypes (#791) 2024-07-04 08:58:12 +00:00
utils Open DD changes for OrderByExpression (#780) 2024-06-28 11:26:30 +00:00