From ae3aa5cf1d9a1064c95fcc94c00ace2f2d00bd40 Mon Sep 17 00:00:00 2001 From: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com> Date: Wed, 20 Nov 2024 19:25:11 +0530 Subject: [PATCH] Docs: Add new compatibility dates (#771) --- .../compatibility-config.mdx | 35 ++++++++++++++++--- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/docs/supergraph-modeling/compatibility-config.mdx b/docs/supergraph-modeling/compatibility-config.mdx index d74a3f749..800cab62f 100644 --- a/docs/supergraph-modeling/compatibility-config.mdx +++ b/docs/supergraph-modeling/compatibility-config.mdx @@ -31,8 +31,26 @@ will be disabled. To enable these features, simply increase your `date` to a new The following is a list of dates at which backwards-incompatible changes were added to Hasura DDN. Projects with CompatibilityConfig `date`s prior to these dates will have these features disabled. +#### 2024-11-18 + +##### Disallow object boolean expression type + +A build error is now raised if `ObjectBooleanExpressionType` is used to define a boolean expression. To resolve this, +you can upgrade all object boolean expression types in your metadata by running the following DDN codemod command. + +```bash +ddn codemod upgrade-object-boolean-expression-types +``` + +Learn more about the [command here](cli/commands/ddn_codemod_upgrade-object-boolean-expression-types.mdx). + #### 2024-11-15 +##### Require unique model GraphQL names + +A build error is now raised if a root field defined in a `Model`'s GraphQL config conflicts with an existing root field. +Previously, the conflicting root field was silently excluded from the GraphQL schema. + ##### Require a valid NDC version in data connector capabilities A build error is now raised when there is an invalid version in the capabilities of a data connector's schema. To fix @@ -40,6 +58,14 @@ the error, please consider upgrading to the latest version of the data connector to correct the invalid version. Prior to this change, it was assumed that the data connector with the invalid version was an NDC v0.1.x connector. +#### 2024-11-13 + +##### Allow resolving boolean expression fields without GraphQL config + +Previously, comparable fields, relationships, and aggregate fields of a `BooleanExpressionType` were validated only if +the `graphql` field was configured in the metadata. These fields are now validated regardless of whether the `graphql` +configuration is specified. + #### 2024-10-31 ##### Disallow comparisons against scalar array fields in predicates @@ -103,12 +129,11 @@ metadata. ## Metadata structure - ### v2_CompatibilityConfig {#v2_compatibilityconfig-v2_compatibilityconfig} The compatibility configuration of the Hasura metadata. -| Key | Value | Required | Description | -|-----|-----|-----|-----| -| `kind` | `CompatibilityConfig` | true | | -| `date` | string | true | Any backwards incompatible changes made to Hasura DDN after this date won't impact the metadata. | +| Key | Value | Required | Description | +| ------ | --------------------- | -------- | ------------------------------------------------------------------------------------------------ | +| `kind` | `CompatibilityConfig` | true | | +| `date` | string | true | Any backwards incompatible changes made to Hasura DDN after this date won't impact the metadata. |