diff --git a/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs b/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs index 97b9aa746f8..732b6593359 100644 --- a/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs +++ b/src/HotChocolate/Core/test/Types.Analyzers.Tests/IntegrationTests.cs @@ -133,6 +133,36 @@ public async Task Inherit_Interface_Fields() result.MatchMarkdownSnapshot(); } + [Fact] + public async Task Query_Using_DataLoader_Interface() + { + // arrange + var services = CreateApplicationServices(); + var executor = await services.GetRequiredService().GetExecutorAsync(); + + // act + var result = await executor.ExecuteAsync( + """ + { + authorById(id: "QXV0aG9yOjE=") { + someInfo + } + } + """); + + // assert + result.MatchInlineSnapshot( + """ + { + "data": { + "authorById": { + "someInfo": "1 - some info" + } + } + } + """); + } + private static IServiceProvider CreateApplicationServices( Action? configure = null) {