InfluxDB: How to user interpolate.linear() function

Hello everyone,

I would like to write some flux queries and use this function: interpolate.linear() function | Flux 0.x Documentation. According to the documentation this is available since version Flux 0.87.0+. But I get a ‘type error 1:1-1:21: unknown import path: “interpolate”’ when I use ‘import “interpolate”’.
Now I have no idea where to start. Right now I am using the database version (1.8.10) which comes with the InfluxDB integration. Do I have to use a v2 Database? Or is it enough to change the API to Version 2?
It would be great if someone could point me in the right direction…

Thanks in advance!!!