-
-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed argument naming conventions for mutation conventions. (#6705)
Co-authored-by: Michael Staib <michael@chillicream.com>
- Loading branch information
1 parent
a7788db
commit f90fbaa
Showing
13 changed files
with
168 additions
and
106 deletions.
There are no files selected for viewing
16 changes: 5 additions & 11 deletions
16
src/HotChocolate/Core/src/Types.Mutations/Errors/ErrorMiddleware.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/HotChocolate/Core/src/Types.Mutations/Errors/ErrorObjectType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...tChocolate/Core/src/Types.Mutations/Extensions/MutationObjectFieldDescriptorExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#nullable enable | ||
|
||
namespace HotChocolate.Types; | ||
|
||
/// <summary> | ||
|
2 changes: 0 additions & 2 deletions
2
src/HotChocolate/Core/src/Types.Mutations/Extensions/ObjectFieldDefinitionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/HotChocolate/Core/src/Types.Mutations/MutationContextDataKeys.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#nullable enable | ||
|
||
namespace HotChocolate.Types; | ||
|
||
internal static class MutationContextDataKeys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 14 additions & 25 deletions
39
src/HotChocolate/Core/src/Types.Mutations/ResolverArgument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,24 @@ | ||
#nullable enable | ||
|
||
namespace HotChocolate.Types; | ||
|
||
internal sealed class ResolverArgument : IInputFieldInfo | ||
internal sealed class ResolverArgument( | ||
string name, | ||
FieldCoordinate coordinate, | ||
IInputType type, | ||
Type runtimeType, | ||
IValueNode? defaultValue, | ||
IInputValueFormatter? formatter) | ||
: IInputFieldInfo | ||
{ | ||
public ResolverArgument( | ||
string name, | ||
FieldCoordinate coordinate, | ||
IInputType type, | ||
Type runtimeType, | ||
IValueNode? defaultValue, | ||
IInputValueFormatter? formatter) | ||
{ | ||
Name = name; | ||
Coordinate = coordinate; | ||
RuntimeType = runtimeType; | ||
Type = type; | ||
DefaultValue = defaultValue; | ||
Formatter = formatter; | ||
} | ||
|
||
public string Name { get; } | ||
public string Name { get; } = name; | ||
|
||
public FieldCoordinate Coordinate { get; } | ||
public FieldCoordinate Coordinate { get; } = coordinate; | ||
|
||
public IInputType Type { get; } | ||
public IInputType Type { get; } = type; | ||
|
||
public Type RuntimeType { get; } | ||
public Type RuntimeType { get; } = runtimeType; | ||
|
||
public IValueNode? DefaultValue { get; } | ||
public IValueNode? DefaultValue { get; } = defaultValue; | ||
|
||
public IInputValueFormatter? Formatter { get; } | ||
public IInputValueFormatter? Formatter { get; } = formatter; | ||
} | ||
|
2 changes: 0 additions & 2 deletions
2
src/HotChocolate/Core/src/Types.Mutations/UseMutationConventionAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
using System.Linq; | ||
|
||
namespace HotChocolate.Types; | ||
|
||
/// <summary> | ||
|
Oops, something went wrong.