File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
src/HotChocolate/Core/test/Types.Analyzers.Tests Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,36 @@ public async Task Inherit_Interface_Fields()
133
133
result . MatchMarkdownSnapshot ( ) ;
134
134
}
135
135
136
+ [ Fact ]
137
+ public async Task Query_Using_DataLoader_Interface ( )
138
+ {
139
+ // arrange
140
+ var services = CreateApplicationServices ( ) ;
141
+ var executor = await services . GetRequiredService < IRequestExecutorProvider > ( ) . GetExecutorAsync ( ) ;
142
+
143
+ // act
144
+ var result = await executor . ExecuteAsync (
145
+ """
146
+ {
147
+ authorById(id: "QXV0aG9yOjE=") {
148
+ someInfo
149
+ }
150
+ }
151
+ """ ) ;
152
+
153
+ // assert
154
+ result . MatchInlineSnapshot (
155
+ """
156
+ {
157
+ "data": {
158
+ "authorById": {
159
+ "someInfo": "1 - some info"
160
+ }
161
+ }
162
+ }
163
+ """ ) ;
164
+ }
165
+
136
166
private static IServiceProvider CreateApplicationServices (
137
167
Action < IServiceCollection > ? configure = null )
138
168
{
You can’t perform that action at this time.
0 commit comments