I want to update my rxjs code to 6 got I don\'t get it.
Before I had the below that wouth poll for new data every 5 seconds:
import { Observable, int
The code should be something like the following. You need to use the pipe operator.
pipe
import { interval } from 'rxjs'; import { switchMap, map } from 'rxjs/operators'; const result = interval(5000).pipe( switchMap(() => this._authHttp.get(url)), map(res => res.results) )