We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 18830e1 + 7eb4e08 commit fa6f498Copy full SHA for fa6f498
src/Linq2GraphQL.Client/GraphClient.cs
@@ -73,7 +73,7 @@ public async Task<GraphQLSchema> GetSchemaForSafeModeAsync()
73
{
74
var executor = new QueryExecutor<GraphQLSchema>(this);
75
76
- var graphRequest = new GraphQLRequest { Query = Helpers.SchemaQuery };
+ var graphRequest = new GraphQLRequest { Query = Helpers.SchemaQueryIncludeDeprecated };
77
return await executor.ExecuteRequestAsync("__schema", graphRequest);
78
});
79
}
src/Linq2GraphQL.Client/Schema/Helpers.cs
@@ -12,4 +12,15 @@ internal static class Helpers
12
13
14
}";
15
+
16
+ internal const string SchemaQueryIncludeDeprecated = @"{
17
+ __schema {
18
+ types {
19
+ name
20
+ fields(includeDeprecated: true) {
21
22
+ }
23
24
25
+ }";
26
0 commit comments