forked from ChilliCream/graphql-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strawberry Shake Persisted Query Support (ChilliCream#3185)
- Loading branch information
1 parent
fe5cbb8
commit e4be19f
Showing
177 changed files
with
2,726 additions
and
1,231 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace StrawberryShake | ||
{ | ||
/// <summary> | ||
/// Represents the document hash. | ||
/// </summary> | ||
public readonly struct DocumentHash | ||
{ | ||
/// <summary> | ||
/// Creates a new instance of <see cref="DocumentHash"/>. | ||
/// </summary> | ||
/// <param name="algorithm"> | ||
/// The name of the hash algorithm. | ||
/// </param> | ||
/// <param name="value"> | ||
/// The document hash value. | ||
/// </param> | ||
public DocumentHash(string algorithm, string value) | ||
{ | ||
Algorithm = algorithm; | ||
Value = value; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the name of the hash algorithm. | ||
/// </summary> | ||
public string Algorithm { get; } | ||
|
||
/// <summary> | ||
/// Gets the document hash value. | ||
/// </summary> | ||
public string Value { get; } | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/StrawberryShake/Client/src/Core/Extensions/IDocumentExtensions.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
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,24 @@ | ||
namespace StrawberryShake | ||
{ | ||
/// <summary> | ||
/// Specifies the GraphQL request strategy. | ||
/// </summary> | ||
public enum RequestStrategy | ||
{ | ||
/// <summary> | ||
/// The full GraphQL query is send. | ||
/// </summary> | ||
Default, | ||
|
||
/// <summary> | ||
/// An id is send representing the query that is stored on the server. | ||
/// </summary> | ||
PersistedQuery, | ||
|
||
/// <summary> | ||
/// The full GraphQL query is only send if the server has not yet stored the | ||
/// persisted query. | ||
/// </summary> | ||
AutomaticPersistedQuery | ||
} | ||
} |
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.