-
-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gai/field-selection-map-parser
- Loading branch information
Showing
92 changed files
with
2,917 additions
and
931 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
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
37 changes: 37 additions & 0 deletions
37
...tChocolate/Fusion-vnext/src/Fusion.Composition/Extensions/DirectivesProviderExtensions.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,37 @@ | ||
using HotChocolate.Skimmed; | ||
using static HotChocolate.Fusion.WellKnownDirectiveNames; | ||
|
||
namespace HotChocolate.Fusion.Extensions; | ||
|
||
internal static class DirectivesProviderExtensions | ||
{ | ||
public static bool HasExternalDirective(this IDirectivesProvider type) | ||
{ | ||
return type.Directives.ContainsName(External); | ||
} | ||
|
||
public static bool HasInaccessibleDirective(this IDirectivesProvider type) | ||
{ | ||
return type.Directives.ContainsName(Inaccessible); | ||
} | ||
|
||
public static bool HasInternalDirective(this IDirectivesProvider type) | ||
{ | ||
return type.Directives.ContainsName(Internal); | ||
} | ||
|
||
public static bool HasLookupDirective(this IDirectivesProvider type) | ||
{ | ||
return type.Directives.ContainsName(Lookup); | ||
} | ||
|
||
public static bool HasOverrideDirective(this IDirectivesProvider type) | ||
{ | ||
return type.Directives.ContainsName(Override); | ||
} | ||
|
||
public static bool HasProvidesDirective(this IDirectivesProvider type) | ||
{ | ||
return type.Directives.ContainsName(Provides); | ||
} | ||
} |
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
Oops, something went wrong.