0

It is possible to implement Reactive programming in NestJs (Like WebFlux in Java/springboot) !?

For example When we run the code :

@Controller('/example')
export class AccountController {
  @Get()
  findAll(): Observable<number> {
    return from([1, 2, 3, 4]);
  }
}

It shows the result 4, and the Official Documentation of NestJs (https://docs.nestjs.com/controllers#asynchronicity) said that : Nest will automatically subscribe to the source underneath and take the last emitted value (once the stream is completed).

I ask if there is a way to implement Reactive programming ?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.