You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an error happens during subscription resolving, the underlying subscription seems to be closed. I would like to change this behaviour to keep the connection open.
One common case where we have seen an error happen is when we return data that doesn't match nullability constraints on the schema. Error will look like this:
The field at path '/activities' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'Sale' within parent type 'Subscription'
This is not great, but it can happen and when it does, we would like the subscription to stay open. Any suggestions on how to customize that? We added .onErrorContinue to the Flow that we return to the @DgsSubscription, but I think that's not called because you are doing operations on the flow after that call.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When an error happens during subscription resolving, the underlying subscription seems to be closed. I would like to change this behaviour to keep the connection open.
One common case where we have seen an error happen is when we return data that doesn't match nullability constraints on the schema. Error will look like this:
This is not great, but it can happen and when it does, we would like the subscription to stay open. Any suggestions on how to customize that? We added
.onErrorContinue
to theFlow
that we return to the@DgsSubscription
, but I think that's not called because you are doing operations on the flow after that call.Beta Was this translation helpful? Give feedback.
All reactions