Skip to content

Commit e4ba262

Browse files
authored
Added info about the disableFormatCheck option to the migration guide (#8739)
1 parent c2f8a94 commit e4ba262

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

website/src/docs/hotchocolate/v14/migrating/migrate-from-13-to-14.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ The `DateTime` scalar will now enforce a specific format. The time and offset ar
171171

172172
Please ensure that your clients are sending date/time strings in the correct format to avoid errors.
173173

174+
You can opt out of the format check with the following code:
175+
176+
```csharp
177+
builder.Services
178+
.AddGraphQLServer()
179+
.AddType(new DateTimeType(disableFormatCheck: true));
180+
```
181+
174182
## Persisted Queries renamed to Persisted Operations
175183

176184
### Packages renamed

website/src/docs/hotchocolate/v15/migrating/migrate-from-13-to-14.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ The `DateTime` scalar will now enforce a specific format. The time and offset ar
171171

172172
Please ensure that your clients are sending date/time strings in the correct format to avoid errors.
173173

174+
You can opt out of the format check with the following code:
175+
176+
```csharp
177+
builder.Services
178+
.AddGraphQLServer()
179+
.AddType(new DateTimeType(disableFormatCheck: true));
180+
```
181+
174182
## Persisted Queries renamed to Persisted Operations
175183

176184
### Packages renamed

website/src/docs/hotchocolate/v16/migrating/migrate-from-13-to-14.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ The `DateTime` scalar will now enforce a specific format. The time and offset ar
171171

172172
Please ensure that your clients are sending date/time strings in the correct format to avoid errors.
173173

174+
You can opt out of the format check with the following code:
175+
176+
```csharp
177+
builder.Services
178+
.AddGraphQLServer()
179+
.AddType(new DateTimeType(disableFormatCheck: true));
180+
```
181+
174182
## Persisted Queries renamed to Persisted Operations
175183

176184
### Packages renamed

0 commit comments

Comments
 (0)