Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Service Injection working incorrectly #1196

Open
jdeal391890293 opened this issue Sep 25, 2023 · 1 comment
Open

Question: Service Injection working incorrectly #1196

jdeal391890293 opened this issue Sep 25, 2023 · 1 comment
Labels
type: question Questions about the usage of the library.

Comments

@jdeal391890293
Copy link

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.

@jdeal391890293 jdeal391890293 added the type: question Questions about the usage of the library. label Sep 25, 2023
@jdeal391890293 jdeal391890293 changed the title Service Injection working incorrectly Question: Service Injection working incorrectly Sep 25, 2023
@attilaorosz
Copy link
Member

Could you provide a basic reproduction code? Never heard of something like this before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Questions about the usage of the library.
Development

No branches or pull requests

2 participants