Home:ALL Converter>mergeMap service in rxjs 6

mergeMap service in rxjs 6

Ask Time:2018-06-28T18:37:58         Author:kosnkov

Json Formatter

I am trying to upgrade my project based on some template from angular 5 to 6

one of the method return mergeMap in this way

return this.accountEndpoint.getUserByUserNameEndpoint<User>(userOrUserId.userName)
                    .mergeMap(user => this.deleteUser(user.id));

and some other in this way return

 this.accountEndpoint.getDeleteUserEndpoint<User>(<string>userOrUserId)
                 .do(data => this.onRolesUserCountChanged(data.roles));

unfortunately mergeMap and do does not exists on observable in rxjs 6

Couuld give me a hint how should this be mapped in new worlds of rxjs 6 ?

Author:kosnkov,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/51080789/mergemap-service-in-rxjs-6
yy