-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Graphql query execute is getting freeze from model callbacks #4198
Comments
I don't see anything out-of-sorts in your code ... I'm not sure what's wrong! How about using |
@rmosolgo Thank you for your reply. Here is the result of
|
I had debugging code and was executing till before i am converting sting to model(using constantize) in resolve method. Below is the line which i am using to get the data using graphql query from webhook model
|
Sorry, I should have clarified: I think we want the output of |
I don't see much info from snapshot command. If you confirm that you are able to execute graphql query to get the data from after_create_commit, you can close this. Below is the output of
You can try with below example
|
Sorry I wasn't able to get to the bottom of this 😖 I see your example query and If you're still running into this, I'd suggest making smaller upgrades -- just a few versions at a time -- instead of making a big update from 1.9.x to 2.0.x. If you can identify which version makes this error start happening, we could reopen this ticket and try to find which commit caused the problem for you 👍 |
We have upgraded rails(5.2.3 to 6.1.6), graphiql-rails(1.7.0 to 1.8.0), and graphql(1.9.14 to 2.0.14) versions recently
All our active record models and graphql types, and query models are virtual models means which are generated on application start
We have configurable webhooks feature, means we can have create/update/delete webhooks which will be triggered on after_create_commit, after_update_commit and before_destroy and the webhook payload is fetching using graphiql query. Application is getting freeze when it triggers grphiql query. The resolver method is like below
This was working fine with older version but giving no error but application is not responding(freezing) after upgrade.
Any idea whats wrong in the code/approach ?
The text was updated successfully, but these errors were encountered: