Open tktcorporation opened 3 years ago
It doesn't seem to be a problem that the type field is UpperCamel, but that the query args is UpperCamel.
Passed when write resolver like this.
#if( !$util.isNull($ctx.args.kind) )
#set( $modelQueryExpression.expression = "#Kind = :Kind" )
#set( $modelQueryExpression.expressionNames = {
"#Kind": "Kind"
} )
#set( $modelQueryExpression.expressionValues = {
":Kind": {
"S": "$ctx.args.kind"
}
} )
Describe the bug When I create a schema with the field name Upper CamelCase, create an object, and then try to retrieve it with Get, an error occurs and the object cannot be retrieved.
To Reproduce Steps to reproduce the behavior:
https://github.com/tktcorporation/aws-android-sdk-appsync-sandbox/blob/36b8c10275014fc60fa96f8222d3d6429daf9771/android/app/src/main/graphql/com/amazonaws/amplify/generated/graphql/queries.graphql#L176-L184
https://github.com/tktcorporation/aws-android-sdk-appsync-sandbox/blob/36b8c10275014fc60fa96f8222d3d6429daf9771/android/app/src/androidTest/java/com/example/appsyncsandbox/appsync/UpperCamelCaseLogTest.kt#L141-L164
Expected behavior Got an object.
Screenshots Run tests of https://github.com/tktcorporation/aws-android-sdk-appsync-sandbox
Environment(please complete the following information):
implementation 'com.amazonaws:aws-android-sdk-appsync:3.1.4'