We encounter the same problem on front end as well regarding this AWSModelQueryMap type issue.
We updated the amplify pckg to the latest one which was released 3 days ago ( 6.8.3 ) and it solved the problem.