Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<IRequestExecutorProvider>().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<IServiceCollection>? configure = null)
{
Expand Down
Loading