-
-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skimmed Schema Improvements for Fusion (#7167)
- Loading branch information
1 parent
41dee1d
commit e2d2300
Showing
190 changed files
with
5,302 additions
and
2,342 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
2 changes: 1 addition & 1 deletion
2
src/CookieCrumble/src/CookieCrumble/Formatters/QueryPlanSnapshotValueFormatter.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,4 +1,4 @@ | ||
#if NET7_0_OR_GREATER | ||
#if NET8_0_OR_GREATER | ||
using System.Buffers; | ||
using HotChocolate.Fusion.Execution.Nodes; | ||
|
||
|
13 changes: 0 additions & 13 deletions
13
src/CookieCrumble/src/CookieCrumble/Formatters/SkimmedSchemaSnapshotValueFormatter.cs
This file was deleted.
Oops, something went wrong.
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
44 changes: 44 additions & 0 deletions
44
src/HotChocolate/Core/src/Features/EmptyFeatureCollection.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,44 @@ | ||
using System.Collections; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace HotChocolate.Features; | ||
|
||
public sealed class EmptyFeatureCollection : IFeatureCollection | ||
{ | ||
private EmptyFeatureCollection() | ||
{ | ||
} | ||
|
||
public bool IsReadOnly => true; | ||
|
||
public int Revision => 0; | ||
|
||
public object? this[Type key] | ||
{ | ||
get => default; | ||
set => ThrowReadOnly(); | ||
} | ||
|
||
/// <inheritdoc /> | ||
public TFeature? Get<TFeature>() | ||
=> default; | ||
|
||
/// <inheritdoc /> | ||
public void Set<TFeature>(TFeature? instance) | ||
=> ThrowReadOnly(); | ||
|
||
[DoesNotReturn] | ||
private static void ThrowReadOnly() | ||
=> throw new NotSupportedException("The feature collection is read-only."); | ||
|
||
/// <inheritdoc /> | ||
public IEnumerator<KeyValuePair<Type, object>> GetEnumerator() | ||
{ | ||
yield break; | ||
} | ||
|
||
/// <inheritdoc /> | ||
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); | ||
|
||
public static EmptyFeatureCollection Default { get; } = new(); | ||
} |
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,14 @@ | ||
// This code was originally forked of https://github.com/dotnet/aspnetcore/tree/c7aae8ff34dce81132d0fb3a976349dcc01ff903/src/Extensions/Features/src | ||
|
||
namespace HotChocolate.Features; | ||
|
||
/// <summary> | ||
/// An object that has features. | ||
/// </summary> | ||
public interface IFeatureProvider | ||
{ | ||
/// <summary> | ||
/// Gets the feature collection. | ||
/// </summary> | ||
IFeatureCollection Features { get; } | ||
} |
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
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
Oops, something went wrong.