diff --git a/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart b/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart index 72b8b9611e..164f652f5d 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart @@ -159,7 +159,7 @@ class GraphQLRequestFactory { upperOutput = r'($id: ID!)'; lowerOutput = r'(id: $id)'; } - case GraphQLRequestOperation.list: + case GraphQLRequestOperation.list || GraphQLRequestOperation.search: upperOutput = '(\$filter: Model${modelName}FilterInput, \$limit: Int, \$nextToken: String)'; lowerOutput =