Skip to content

Commit 485752e

Browse files
authored
Fix AllowNonPersistedOperation to preserve existing override fields (#9726)
1 parent daef34e commit 485752e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HotChocolate/Core/src/Execution.Abstractions/Execution/Features/PersistedOperationRequestOverridesExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static OperationRequestBuilder AllowNonPersistedOperation(
2727
}
2828
else
2929
{
30-
options = new PersistedOperationRequestOverrides(AllowNonPersistedOperation: true);
30+
options = options with { AllowNonPersistedOperation = true };
3131
}
3232

3333
builder.Features.Set(options);

0 commit comments

Comments
 (0)