We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98cb88d commit 1e4a7cbCopy full SHA for 1e4a7cb
src/GraphQL.Primitives/GraphQLResponse.cs
@@ -6,11 +6,12 @@
6
namespace GraphQL
7
{
8
9
- public class GraphQLResponse<T> : IEquatable<GraphQLResponse<T>?>
+ public class GraphQLResponse<T> : IGraphQLResponse, IEquatable<GraphQLResponse<T>?>
10
11
12
[DataMember(Name = "data")]
13
public T Data { get; set; }
14
+ object IGraphQLResponse.Data => Data;
15
16
[DataMember(Name = "errors")]
17
public GraphQLError[]? Errors { get; set; }
src/GraphQL.Primitives/IGraphQLResponse.cs
@@ -0,0 +1,11 @@
1
+namespace GraphQL
2
+{
3
+ public interface IGraphQLResponse
4
+ {
5
+ object Data { get; }
+
+ GraphQLError[]? Errors { get; set; }
+ Map? Extensions { get; set; }
+ }
+}
0 commit comments