#@EvenPattern not working in service

4 messages · Page 1 of 1 (latest)

boreal canopy
#

I am trying to use nestjs microservices with graphql and rabbitmq. The handlers with @polar edgettPattern in controllers are receiving queue messages from rabbitmq but not in service.

remote sluice
#

Are you adding @EventPattern() decorators to services? That won't work. Nest looks for those decorators in classes that are in the controllers array of the @Module() metadata

boreal canopy
remote sluice
#

Correct