Skip to content

Commit

Permalink
Reworked the mutation convention options defaults. (ChilliCream#4549)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Dec 13, 2021
1 parent 363d00e commit 5ef0cf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static class MutationRequestExecutorBuilderExtensions
/// </exception>
public static IRequestExecutorBuilder AddMutationConventions(
this IRequestExecutorBuilder builder,
bool applyToAllMutations = false)
bool applyToAllMutations = true)
=> AddMutationConventions(
builder,
new MutationConventionOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ internal static class MutationConventionOptionDefaults

public const string PayloadErrorsFieldName = "errors";

public const bool ApplyToAllMutations = false;
public const bool ApplyToAllMutations = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public async Task SimpleMutation_Attribute()
await new ServiceCollection()
.AddGraphQL()
.AddMutationType<SimpleMutationAttribute>()
.AddMutationConventions()
.AddMutationConventions(false)
.ModifyOptions(o => o.StrictValidation = false)
.BuildSchemaAsync()
.MatchSnapshotAsync();
Expand Down

0 comments on commit 5ef0cf3

Please sign in to comment.