Since the file should be generated dynamically, perhaps I should use the fs writeStream modules. But I could not find any code examples with my poor search. Unfortunately.
In particular, I want to provide a CSV file or a PDF file with my data in MongoDB when someone asks.
Someone please give me some advice.
Thanks.
Whiteship
source share