Skip to content

How can I inject a custom class between controller and repository. #4348

Open
@sunilsharma0

Description

@sunilsharma0

Hello Team,

Please help me to inject a class between my controller and repository.
I want create a library/myclass.ts and that i want to call from my controller request function. So that i can interact with my different database table through repository instances.

@fabien @albertoleal @sam-github @rmg @Schoonology
Guys please help to do it. As I am moving from Laravel to Loopback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions