Transformation Operators

Let's explore RxJS transformation operators with the help of interactive examples.

What are the transformation operators?

These operators help in transforming the source of an Observable.

mergeMap() operator

The mergeMap() operator allows us to take two source Observables and convert them into one source Observable. Why would this be useful? Well, if we have an application that retrieves data from two separate APIs, we can take the two API Observables and merge them into one single data source.


Let’s have a look at how this works:

Get hands-on with 1200+ tech skills courses.