GraphQL for .NET
This report summarizes scanner evidence for graphql-dotnet/graphql-dotnet, a C# project with 5,984 GitHub stars. SynthScan examined 174,294 lines of code across 1348 source files, recording 437 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 2.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-15.
Can maintainers explain intent, assumptions, and trade-offs? 397 finding(s).
Are imports declared and package/API names verified? 28 finding(s).
Are wrappers, guards, and repeated structures necessary? 12 finding(s).
Which changes need focused human review? 437 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 437 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs2/site/docs/getting-started/directives.md | 341 | /// Allow experimental features only for client queries but not for standard introspection | COMMENT |
| LOW | docs2/site/docs/getting-started/field-middleware.md | 141 | .ApplyMiddleware<FieldMiddleware2>(); | COMMENT |
| LOW | src/GraphQL.MemoryCache/MemoryDocumentCacheOptions.cs | 21 | /// for the query is reset to this value. Defaults to <see langword="null"/>, indicating that there is no expiration | COMMENT |
| LOW | src/GraphQL.MemoryCache/MemoryDocumentCache.cs | 41 | COMMENT | |
| LOW | …/GraphQL.NewtonsoftJson/GraphQLRequestJsonConverter.cs | 1 | using GraphQL.Transport; | COMMENT |
| LOW | …/GraphQL.NewtonsoftJson/GraphQLRequestJsonConverter.cs | 21 | private const string QUERY_KEY = "query"; | COMMENT |
| LOW | src/GraphQL.NewtonsoftJson/GraphQLSerializer.cs | 21 | /// Returns the underlying serializer. | COMMENT |
| LOW | src/GraphQL.NewtonsoftJson/SchemaExtensions.cs | 1 | using GraphQL.Types; | COMMENT |
| LOW | src/GraphQL.Benchmarks/Program.cs | 1 | using System.Reflection; | COMMENT |
| LOW | src/GraphQL.Benchmarks/Program.cs | 21 | // PROFILER MODE (/p) | COMMENT |
| LOW | …/GraphQL.SystemTextJson/GraphQLRequestJsonConverter.cs | 21 | /// </summary> | COMMENT |
| LOW | src/GraphQL.SystemTextJson/GraphQLSerializer.cs | 81 | /// <see cref="JsonSerializer.Serialize(object, Type, JsonSerializerOptions)">Serialize()</see> or | COMMENT |
| LOW | src/GraphQL.SystemTextJson/GraphQLSerializer.cs | 101 | COMMENT | |
| LOW | src/GraphQL.SystemTextJson/GraphQLSerializer.cs | 221 | => jsonDocument == null ? default : JsonSerializer.Deserialize<T>(jsonDocument, _options); | COMMENT |
| LOW | src/GraphQL.SystemTextJson/SchemaExtensions.cs | 1 | using GraphQL.Types; | COMMENT |
| LOW | src/GraphQL.DataLoader.Tests/ApolloTracingTests.cs | 1 | using GraphQL.Instrumentation; | COMMENT |
| LOW | src/GraphQL.Tests/AssertionExtensions.cs | 1 | using System.Text.Json; | COMMENT |
| LOW | src/GraphQL.Tests/Bugs/Bug4447.cs | 1 | using GraphQL.Types; | COMMENT |
| LOW | …raphQL.Tests/Validation/ArgumentsOfCorrectTypeTests.cs | 581 | _.Query = query; | COMMENT |
| LOW | src/GraphQL.DataLoader/DataLoaderBase.cs | 21 | /// </summary> | COMMENT |
| LOW | src/GraphQL.DataLoader/DataLoaderBase.cs | 41 | /// Initialize a DataLoaderBase with the specified options. | COMMENT |
| LOW | src/GraphQL.DataLoader/DataLoaderBase.cs | 121 | /// None of the keys will be <see langword="null"/>. | COMMENT |
| LOW | src/GraphQL.DataLoader/DataLoaderPair.cs | 1 | namespace GraphQL.DataLoader; | COMMENT |
| LOW | src/GraphQL.DataLoader/BatchDataLoader.cs | 1 | namespace GraphQL.DataLoader; | COMMENT |
| LOW | src/GraphQL.DataLoader/CollectionBatchDataLoader.cs | 1 | namespace GraphQL.DataLoader; | COMMENT |
| LOW | src/GraphQL.DataLoader/IDataLoader.cs | 1 | namespace GraphQL.DataLoader; | COMMENT |
| LOW | src/GraphQL.DataLoader/IDataLoader.cs | 21 | /// <summary> | COMMENT |
| LOW | …L.DataLoader/Extensions/DataLoaderContextExtensions.cs | 1 | using GraphQL.DataLoader; | COMMENT |
| LOW | …L.DataLoader/Extensions/DataLoaderContextExtensions.cs | 61 | } | COMMENT |
| LOW | …L.DataLoader/Extensions/DataLoaderContextExtensions.cs | 81 | COMMENT | |
| LOW | …L.DataLoader/Extensions/DataLoaderContextExtensions.cs | 141 | COMMENT | |
| LOW | …L.DataLoader/Extensions/DataLoaderContextExtensions.cs | 241 | if (keySelector == null) | COMMENT |
| LOW | …/GraphQL.DataLoader/Extensions/DataLoaderExtensions.cs | 81 | /// Chains post-processing to a pending data loader operation | COMMENT |
| LOW | …/GraphQL.DataLoader/Extensions/DataLoaderExtensions.cs | 101 | /// <typeparam name="TResult">The type of the result</typeparam> | COMMENT |
| LOW | …c/GraphQL.MicrosoftDI/SelfActivatingServiceProvider.cs | 1 | using GraphQL.Types; | COMMENT |
| LOW | …hQL.MicrosoftDI/MicrosoftDIGraphQLBuilderExtensions.cs | 21 | public static IServiceCollection AddGraphQL(this IServiceCollection services, Action<IGraphQLBuilder>? configure) | COMMENT |
| LOW | …hQL.MicrosoftDI/ScopedSubscriptionExecutionStrategy.cs | 1 | using GraphQL.Execution; | COMMENT |
| LOW | …hQL.MicrosoftDI/ScopedSubscriptionExecutionStrategy.cs | 41 | /// <inheritdoc/> | COMMENT |
| LOW | src/GraphQL/GlobalSwitches.cs | 1 | using System.ComponentModel; | COMMENT |
| LOW | src/GraphQL/GlobalSwitches.cs | 21 | /// </summary> | COMMENT |
| LOW | src/GraphQL/GlobalSwitches.cs | 61 | /// 'enum-member'. Only change it when absolutely necessary. This is typically only overridden | COMMENT |
| LOW | src/GraphQL/GlobalSwitches.cs | 81 | /// <br/> | COMMENT |
| LOW | src/GraphQL/GlobalSwitches.cs | 101 | /// See <see href="https://spec.graphql.org/October2021/#sec-Root-Operation-Types">Root Operation Types</see>. | COMMENT |
| LOW | src/GraphQL/GlobalSwitches.cs | 121 | /// </summary> | COMMENT |
| LOW | src/GraphQL/IConfigureAutoSchema.cs | 1 | using GraphQL.DI; | COMMENT |
| LOW | src/GraphQL/ExperimentalFeatures.cs | 1 | namespace GraphQL; | COMMENT |
| LOW | src/GraphQL/ExperimentalFeatures.cs | 21 | /// This feature is from a working draft of the specification (not experimental, just not released yet). | COMMENT |
| LOW | src/GraphQL/VariableName.cs | 41 | /// Does not include the index or child property name. | COMMENT |
| LOW | src/GraphQL/LightweightCache.cs | 101 | } | COMMENT |
| LOW | src/GraphQL/Types/ArgumentInformation.cs | 1 | using System.Linq.Expressions; | COMMENT |
| LOW | src/GraphQL/Types/ArgumentInformation.cs | 61 | /// The <see cref="Types.FieldType"/> that the query argument will be added to. | COMMENT |
| LOW | src/GraphQL/Types/ArgumentInformation.cs | 161 | public virtual void ApplyAttributes() | COMMENT |
| LOW | src/GraphQL/Types/IGraphType.cs | 1 | namespace GraphQL.Types; | COMMENT |
| LOW | src/GraphQL/Types/IGraphType.cs | 21 | /// <summary> | COMMENT |
| LOW | src/GraphQL/Types/IGraphType.cs | 41 | /// Represents a graph type within the GraphQL schema. | COMMENT |
| LOW | src/GraphQL/Types/TypeCollectionContext.cs | 1 | namespace GraphQL.Types; | COMMENT |
| LOW | src/GraphQL/Types/ISchema.cs | 21 | /// Returns <see langword="true"/> once the schema has been initialized. | COMMENT |
| LOW | src/GraphQL/Types/ISchema.cs | 41 | /// then adding additional middleware through the builder does nothing. The schema is initialized (if not yet) | COMMENT |
| LOW | src/GraphQL/Types/ISchema.cs | 61 | COMMENT | |
| LOW | src/GraphQL/Types/ISchema.cs | 81 | COMMENT | |
| 321 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …raphQL.Tests/Introspection/SchemaIntrospectionTests.cs | 0 | input exampleinputtagged @oneof { a: string b: int } type query { test(arg: exampleinputtagged!): string } | STRING |
| HIGH | src/GraphQL.Tests/Utilities/SchemaExporterTests.cs | 0 | input exampleinputtagged @oneof { a: string b: int } type query { test(arg: exampleinputtagged!): string } | STRING |
| HIGH | src/GraphQL.Tests/Validation/ValidationContextTests.cs | 0 | input exampleinputtagged @oneof { a: string b: int } type query { test(arg: exampleinputtagged!): string } | STRING |
| HIGH | src/GraphQL.Tests/Attributes/ParserAttributeTests.cs | 0 | { hello1(value: "abc") hello2(value: "def") hello3(value: "ghi") hello4(value: "jkl") } | STRING |
| HIGH | …QL.Tests/Attributes/ValidateArgumentsAttributeTests.cs | 0 | { hello1(value: "abc") hello2(value: "def") hello3(value: "ghi") hello4(value: "jkl") } | STRING |
| HIGH | src/GraphQL.Tests/Attributes/ValidatorAttributeTests.cs | 0 | { hello1(value: "abc") hello2(value: "def") hello3(value: "ghi") hello4(value: "jkl") } | STRING |
| HIGH | src/GraphQL.Tests/Validation/KnownDirectivesTests.cs | 0 | { dog @include(if: true) { name } human @skip(if: false) { name } } | STRING |
| HIGH | …raphQL.Tests/Validation/ArgumentsOfCorrectTypeTests.cs | 0 | { dog @include(if: true) { name } human @skip(if: false) { name } } | STRING |
| HIGH | …phQL.Tests/Validation/ProvidedNonNullArgumentsTests.cs | 0 | { dog @include(if: true) { name } human @skip(if: false) { name } } | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/GraphQL.Benchmarks/Benchmarks/ToObjectBenchmark.cs | 38 | { "name", "John Doe" }, | CODE |
| LOW | src/GraphQL.Benchmarks/Benchmarks/ToObjectBenchmark.cs | 44 | { "name", "John Doe" }, | CODE |
| LOW | src/GraphQL.Benchmarks/Benchmarks/ToObjectBenchmark.cs | 73 | { "address1", "123 Main St" }, | CODE |
| LOW | src/GraphQL.Tests/Types/InterfaceGraphTypeTests.cs | 14 | hello(name: "John Doe") | CODE |
| LOW | src/GraphQL.Tests/Types/InterfaceGraphTypeTests.cs | 21 | "hello": "John Doe" | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 280 | var actual = TestParse<TestBasicClass>(graphType, """{"id":123,"name":"John Doe"}"""); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 282 | actual.Name.ShouldBe("John Doe"); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 293 | var actual = TestParse<TestBasicRecord>(graphType, """{"id":123,"name":"John Doe"}"""); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 295 | actual.Name.ShouldBe("John Doe"); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 306 | var actual = TestParse<TestBasicRecordStruct>(graphType, """{"id":123,"name":"John Doe"}"""); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 308 | actual.Name.ShouldBe("John Doe"); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 319 | var actual = TestParse<TestStructWritableProperties>(graphType, """{"id":123,"name":"John Doe"}"""); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 321 | actual.Name.ShouldBe("John Doe"); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 332 | var actual = TestParse<TestStructReadOnlyProperties>(graphType, """{"id":123,"name":"John Doe"}"""); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 334 | actual.Name.ShouldBe("John Doe"); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 358 | var actual = TestParse<ReadOnlyClass>(graphType, """{"id":123,"name":"John Doe"}"""); | CODE |
| LOW | …ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs | 360 | actual.Name.ShouldBe("John Doe"); | CODE |
| LOW⚡ | src/GraphQL.Tests/Bugs/Bug3988.cs | 50 | "name": "John Doe", | CODE |
| LOW⚡ | src/GraphQL.Tests/Bugs/Bug3988.cs | 51 | "name2": "John Doe", | CODE |
| LOW⚡ | src/GraphQL.Tests/Bugs/Bug3988.cs | 52 | "name3": "John Doe" | CODE |
| LOW | src/GraphQL.Tests/Bugs/Bug3988.cs | 68 | public string Name => "John Doe"; | STRING |
| LOW | src/GraphQL.Tests/Bugs/Bug4083.cs | 45 | "name": "John Doe" | CODE |
| LOW | src/GraphQL.Tests/Bugs/Bug4083.cs | 54 | public static Class1 Hero(int id) => new Class1 { Id = id, Name = "John Doe" }; | STRING |
| LOW | src/GraphQL.Tests/Bugs/Issue4060.cs | 71 | .Resolve(context => new { id = context.GetArgument<int>("id"), name = "John Doe" }); | STRING |
| LOW | src/GraphQL.Tests/Bugs/Issue4060.cs | 109 | "name": "John Doe" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …GraphQL.Tests/Utilities/SchemaBuilderExecutionTests.cs | 63 | stack.ShouldStartWith("GraphQL.Tests.Utilities.SchemaBuilderExecutionTests.Query.Method()"); | STRING |
| CRITICAL | …GraphQL.Tests/Utilities/SchemaBuilderExecutionTests.cs | 95 | stack.ShouldStartWith("GraphQL.Tests.Utilities.SchemaBuilderExecutionTests.Query.get_Property()"); | STRING |
| CRITICAL | src/GraphQL/Validation/Rules/KnownTypeNames.cs | 37 | var typeNames = context.Schema.AllTypes.Dictionary.Values.Select(x => x.Name).ToArray(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/GraphQL.Benchmarks/Program.cs | 5 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/GraphQL.Benchmarks/Program.cs | 22 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/GraphQL.Benchmarks/Program.cs | 34 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/GraphQL/Types/Schema.cs | 637 | // Step 3: if defaultValue is a list | COMMENT |
| LOW | src/GraphQL/Types/Schema.cs | 649 | // Step 4: if defaultValue is an unordered map | COMMENT |
| LOW⚡ | src/GraphQL/Types/Schema.cs | 695 | // Step 6: fieldDefaultValue exists in the provided map | COMMENT |
| LOW⚡ | src/GraphQL/Types/Schema.cs | 699 | // Step 7: fall back to the field's own default value | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/GraphQL/Types/Schema.cs | 637 | // Step 3: if defaultValue is a list | COMMENT |
| LOW | src/GraphQL/Types/Schema.cs | 649 | // Step 4: if defaultValue is an unordered map | COMMENT |
| LOW⚡ | src/GraphQL/Types/Schema.cs | 695 | // Step 6: fieldDefaultValue exists in the provided map | COMMENT |
| LOW⚡ | src/GraphQL/Types/Schema.cs | 699 | // Step 7: fall back to the field's own default value | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | samples/GraphQL.Harness/CountFieldMiddleware.cs | 21 | // these dependencies are not needed here and are used only for demonstration purposes | COMMENT |
| MEDIUM | src/GraphQL.Tests/Bugs/Bug781UnobservedTasks.cs | 9 | [Theory(Skip = "for demonstration purposes only, unreliable results")] | CODE |
| LOW | …hQL/ResolveFieldContext/ReadonlyResolveFieldContext.cs | 16 | // WARNING: if you add a new field here, then don't forget to clear it in Reset method! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/GraphQL/Resolvers/ObservableFromAsyncEnumerable.cs | 105 | /// This allows the <see cref="SourceStreamMethodResolver"/> to utilize existing functionality | COMMENT |
| MEDIUM | src/GraphQL/Execution/SubscriptionExecutionStrategy.cs | 44 | /// If scoped services are needed, it is recommended to utilize the ScopedSubscriptionExecutionStrategy | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs2/site/docs/guides/dataloader.md | 6 | Sample projects demonstrating both default data loaders (as described below on this page) and [DI-based data loaders](#d | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/wipcheck.yml | 19 | if: ${{ contains(github.event.pull_request.title, '[WIP]') }} # This function is case insensitive. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ties/Visitors/Custom/DeprecatedTypeReferenceVisitor.cs | 14 | /// Example usage: | COMMENT |