Class: GraphQL::Relay::ConnectionResolve::LazyNodesWrapper Private
- Defined in:
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A container for the proper `parent` of connection nodes. Without this wrapper, the lazy object itself is passed into `build_connection` and it becomes the parent, which is wrong.
We can get away with it because we know that this instrumentation will be applied last. That means its code after `underlying_resolve` will be last on the way in. And, its code before `underlying_resolve` will be first during lazy resolution.