Skip to content
Discussion options

You must be logged in to vote

Just as with Node
You can use Lucid for fetching all rows from db, something like:

import Userfrom 'App/Models/User'
...

const users = await User.all()

// Manually create CSV with your favourite CSV package
await arrayToCSV('./test.csv', users) // `arrayToCSV()` is just example, not real built-in function

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RomainLanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants