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

Error: Only one resolver is allowed per field #2449

Closed
mooser opened this issue Sep 28, 2019 · 2 comments
Closed

Error: Only one resolver is allowed per field #2449

mooser opened this issue Sep 28, 2019 · 2 comments
Labels
bug Something isn't working graphql-transformer-v1 Issue related to GraphQL Transformer v1

Comments

@mooser
Copy link

mooser commented Sep 28, 2019

Note: If your question is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

** Which Category is your question related to? **

amplify push

** What AWS Services are you utilizing? **

appsync

** Provide additional details e.g. code snippets **

I am new to amplify. Is it safe to say the experience of using amplify is all about finding ways to work around: "stackUpdateComplete error?" after amplify push?

I experience this error every single day during app development, and I end up having to delete everything and start over multiple times a day. I've learned that you have to be very delicate with schema updates. So I've been very delicate, yet the error still happens every day.

For example, when changing a type in my schema, I've found the best way is to completely comment it out, then run a push (to hopefully delete everything) and then uncomment the type, modify it, and amplify push and hope for the best.

Here's an example where resolvers are not being cleaned up properly and you can probably reproduce and fix it.

type Something {
   id: ID!
   hello: String! 
}

type HasSomething {
   id: ID!
   something: Something @connection
}

So I comment out "HasSomething" and amplify push to delete it. Success (or not).
Then I uncomment it and amplify push and it fails.

Reason: Only one resolver is allowed per field.

✖ An error occurred when pushing the resources to the cloud

Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete

  1. Can you reproduce?
  2. Can you fix?
@mooser mooser changed the title Resolvers aren't being cleaned up properly. Resolvers for a connection aren't being cleaned up properly. Sep 28, 2019
@nikhname nikhname added question General question graphql-transformer-v1 Issue related to GraphQL Transformer v1 labels Sep 29, 2019
@kaustavghosh06 kaustavghosh06 added bug Something isn't working and removed question General question labels Sep 30, 2019
@kaustavghosh06 kaustavghosh06 changed the title Resolvers for a connection aren't being cleaned up properly. Error: Only one resolver is allowed per field Oct 3, 2019
@kaustavghosh06
Copy link
Contributor

@mooser The "One resolver per field" error/bug is a know AppSync service bug and we're actively working with the service team to get this fixed. There is already an issue opened up out here - #682 which we're using to track this and #682 (comment) mentions about a workaround for this.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working graphql-transformer-v1 Issue related to GraphQL Transformer v1
Projects
None yet
Development

No branches or pull requests

3 participants