Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify.API.query(list) request fails #1521

Closed
1 task done
lawmicha opened this issue Oct 4, 2021 · 0 comments
Closed
1 task done

Amplify.API.query(list) request fails #1521

lawmicha opened this issue Oct 4, 2021 · 0 comments
Labels
GraphQL API Related to the API (GraphQL) category/plugins

Comments

@lawmicha
Copy link
Member

lawmicha commented Oct 4, 2021

Before opening, please confirm:

Language and Async Model

Not applicable

Amplify Categories

GraphQL API

Gradle script dependencies

// Put output below this line

Environment information

# Put output below this line


Please include any relevant guides or documentation you're referencing

No response

Describe the bug

Please see aws-amplify/amplify-cli#8350 for the bug

and aws-amplify/amplify-codegen#252 for the codegen and library changes required

Library logic change needed here: https://github.com/aws-amplify/amplify-android/blob/main/aws-api-appsync/src/main/java/com/amplifyframework/api/aws/AppSyncGraphQLRequest.java#L159-L161

After

modelName = Casing.capitalizeFirst(modelSchema.getListPluralName());

Type definition changes required to support new codegenerated fields here: https://github.com/aws-amplify/amplify-android/blob/main/core/src/main/java/com/amplifyframework/core/model/annotations/ModelConfig.java

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


amplifyconfiguration.json

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GraphQL API Related to the API (GraphQL) category/plugins
Projects
None yet
Development

No branches or pull requests

2 participants