Apoc.export.csv. How to get response without creating file?

We have a two docker containers (app and db).
Tell me please, how i can get response(string in csv format) from db avoiding extra actions with the file.

I'm not sure I understand what you're trying to do. Do you just want all the nodes and relationships listed without creating a file? Or are you trying to save the file somewhere specific without first saving to the computer/server?