forked from EntityGraphQL/EntityGraphQL
-
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.
more formatting and small fixes for subscriptions
- Loading branch information
1 parent
7d72f43
commit 5c1f88f
Showing
18 changed files
with
2,275 additions
and
1,983 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace EntityGraphQL.AspNet.WebSockets | ||
namespace EntityGraphQL.AspNet.WebSockets; | ||
|
||
public class BaseGraphQLWSResponse | ||
{ | ||
public string Type { get; set; } = string.Empty; | ||
} | ||
|
||
public class BaseWithIdGraphQLWSResponse : BaseGraphQLWSResponse | ||
{ | ||
public class TypeOnlyGraphQLWSResponse | ||
{ | ||
public string? Type { get; set; } | ||
} | ||
public string? Id { get; set; } | ||
} | ||
|
||
public class WithIdGraphQLWSResponse : TypeOnlyGraphQLWSResponse | ||
{ | ||
public Guid? Id { get; set; } | ||
} | ||
public class GraphQLWSRequest : WithIdGraphQLWSResponse | ||
{ | ||
public QueryRequest? Payload { get; set; } | ||
} | ||
public class GraphQLWSRequest : BaseWithIdGraphQLWSResponse | ||
{ | ||
public QueryRequest? Payload { get; set; } | ||
} | ||
|
||
public class GraphQLWSResponse : WithIdGraphQLWSResponse | ||
{ | ||
public QueryResult? Payload { get; set; } | ||
} | ||
public class GraphQLWSResponse : BaseWithIdGraphQLWSResponse | ||
{ | ||
public QueryResult? Payload { get; set; } | ||
} | ||
|
||
public class GraphQLWSError : WithIdGraphQLWSResponse | ||
{ | ||
public List<GraphQLError>? Payload { get; set; } | ||
} | ||
} | ||
public class GraphQLWSError : BaseWithIdGraphQLWSResponse | ||
{ | ||
public List<GraphQLError>? Payload { get; set; } | ||
} |
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.