File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/api/amplify_api_dart Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ class GraphQLResponseDecoder {
99
99
decodePath: request.decodePath,
100
100
variables: variablesWithNextToken,
101
101
modelType: request.modelType,
102
+ authorizationMode: request.authorizationMode,
103
+ apiName: request.apiName,
102
104
);
103
105
}
104
106
decodedData = modelType.fromJson (
Original file line number Diff line number Diff line change @@ -231,7 +231,11 @@ void main() {
231
231
() async {
232
232
const limit = 2 ;
233
233
final GraphQLRequest <PaginatedResult <Blog >> req =
234
- ModelQueries .list <Blog >(Blog .classType, limit: limit);
234
+ ModelQueries .list <Blog >(
235
+ Blog .classType,
236
+ limit: limit,
237
+ authorizationMode: APIAuthorizationType .iam,
238
+ );
235
239
236
240
const data = '''{
237
241
"listBlogs": {
@@ -263,6 +267,8 @@ void main() {
263
267
response.data? .nextToken,
264
268
);
265
269
expect (resultRequest? .variables['limit' ], limit);
270
+ expect (resultRequest? .authorizationMode, req.authorizationMode);
271
+ expect (resultRequest? .apiName, req.apiName);
266
272
});
267
273
268
274
test (
You can’t perform that action at this time.
0 commit comments