-
-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow root fields to be colocated. (#6890)
- Loading branch information
1 parent
3592a19
commit 8717279
Showing
28 changed files
with
1,474 additions
and
932 deletions.
There are no files selected for viewing
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
6 changes: 6 additions & 0 deletions
6
src/HotChocolate/Core/src/Abstractions/MutationFieldAttribute.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace HotChocolate; | ||
|
||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] | ||
public sealed class MutationFieldAttribute : Attribute; |
6 changes: 6 additions & 0 deletions
6
src/HotChocolate/Core/src/Abstractions/QueryFieldAttribute.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace HotChocolate; | ||
|
||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] | ||
public sealed class QueryFieldAttribute : Attribute; |
6 changes: 6 additions & 0 deletions
6
src/HotChocolate/Core/src/Abstractions/SubscriptionFieldAttribute.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace HotChocolate; | ||
|
||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] | ||
public sealed class SubscriptionFieldAttribute : Attribute; |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using HotChocolate.Types.Analyzers.Properties; | ||
using Microsoft.CodeAnalysis; | ||
|
||
namespace HotChocolate.Types.Analyzers; | ||
|
||
public static class Errors | ||
{ | ||
public static readonly DiagnosticDescriptor KeyParameterMissing = | ||
new( | ||
id: "HC0074", | ||
title: "Parameter Missing.", | ||
messageFormat: | ||
SourceGenResources.DataLoader_KeyParameterMissing, | ||
category: "DataLoader", | ||
DiagnosticSeverity.Error, | ||
isEnabledByDefault: true); | ||
|
||
public static readonly DiagnosticDescriptor MethodAccessModifierInvalid = | ||
new( | ||
id: "HC0075", | ||
title: "Access Modifier Invalid.", | ||
messageFormat: | ||
SourceGenResources.DataLoader_InvalidAccessModifier, | ||
category: "DataLoader", | ||
DiagnosticSeverity.Error, | ||
isEnabledByDefault: true); | ||
} |
Oops, something went wrong.