Skip to content

Instantly share code, notes, and snippets.

@mahi424
Created November 17, 2023 05:17
Show Gist options
  • Save mahi424/90ee1038e36dbaaac39a3f047f655f46 to your computer and use it in GitHub Desktop.
Save mahi424/90ee1038e36dbaaac39a3f047f655f46 to your computer and use it in GitHub Desktop.
typeorm-circular-dependency.md
// in module
forwardRef(() => OrganisationModule)


// in service
    @Inject(forwardRef(() => OrganisationService))
    private readonly organisationService: OrganisationService,
 
forwardRef(() => GroupModule),
    @Inject(forwardRef(() => GroupService))
    private readonly groupService: GroupService,
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment