From ba0d021048a1f9c05d1f72a18de0781b9481c677 Mon Sep 17 00:00:00 2001 From: Glen Date: Mon, 12 Aug 2024 16:01:15 +0200 Subject: [PATCH] Added DateTime scalar breaking change to migration guide (#7359) --- .../hotchocolate/v14/migrating/migrate-from-13-to-14.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md b/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md index 308b91cfa26..9369dff3e57 100644 --- a/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md +++ b/website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md @@ -32,6 +32,12 @@ The interface `IQueryResultBuilder` and its implementations were replaced with ` The interface `IQueryResultBuilder` and its implementations were replaced with `OperationResultBuilder` which produces an `OperationResult` on `Build()`. +## DateTime scalar enforces a specific format + +The `DateTime` scalar will now enforce a specific format. The time and offset are now required, and fractional seconds are limited to 7. This aligns it with the DateTime Scalar spec (), with the one difference being that fractions of a second are optional, and 0-7 digits may be specified. + +Please ensure that your clients are sending date/time strings in the correct format to avoid errors. + # Deprecations Things that will continue to function this release, but we encourage you to move away from.