graphql-python / graphql-core-legacy

GraphQL base implementation for Python (legacy version – see graphql-core for the current one)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible logic issue with unreachable code

ambientlight opened this issue · comments

Was looking into subscriptions and found this:

https://github.com/graphql-python/graphql-core/blob/9333075c657e91e563c09add8464f3758e317749/graphql/execution/executor.py#L306-L312

The desired intention here is merging field subscriptions into single observable?

It does like like return observable shouldn't be there.

The reason for this is probably that the whole code is only tested and functional when there is only one field anyway. I have now made the code more clear in this regard.

Closing this here. If anybody wants to solve this properly, this is still open as #194.