Closed
Description
get_middleware_resolvers
is implemented as a generator:
The generator object is then assigned to self._middleware_resolvers
:
As the generator is not consumed and unrolled into a list at this point, it is exhausted during the reduce()
call of the first field construction:
As the generator is now exhausted, all other calls to reduce()
will immediately receive StopIteration
so no other field is wrapped.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Keep a list of middleware resolvers
Keep a list of middleware resolvers
Keep a list of middleware resolvers (#16)
Cito commentedon Nov 25, 2018
Thanks @patrys - I can confirm the issue and your fix, and added a regression test for this.