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
Objective:
I aimed to share the same dependency injection container between an Apollo GraphQL API and a REST API. Both APIs employ constructor-based service injection, and I intended to reuse the declared service in this shared container.
Issue Encountered:
While the constructor-based service injection works seamlessly within the GraphQL API, an issue arises when attempting to utilize the same services in the REST API. Upon doing so, the GraphQL API begins to malfunction, logging all services as undefined.
Request for Assistance:
I'd appreciate any guidance or advice on resolving this issue. It's imperative for both APIs to cohesively share the same services without compromising functionality.
The text was updated successfully, but these errors were encountered:
Objective:
I aimed to share the same dependency injection container between an Apollo GraphQL API and a REST API. Both APIs employ constructor-based service injection, and I intended to reuse the declared service in this shared container.
Issue Encountered:
While the constructor-based service injection works seamlessly within the GraphQL API, an issue arises when attempting to utilize the same services in the REST API. Upon doing so, the GraphQL API begins to malfunction, logging all services as undefined.
Request for Assistance:
I'd appreciate any guidance or advice on resolving this issue. It's imperative for both APIs to cohesively share the same services without compromising functionality.
The text was updated successfully, but these errors were encountered: