Skip to content

Question: Service Injection working incorrectly #1196

@jdeal391890293

Description

@jdeal391890293

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions