Hello guys,
I am working on a meteor app for people to practice their English.
If you’re curious, you can see the gameplay at https://www.youtube.com/watch?v=tWQYKaExPQU
I need a filename from a folder, is it better to push all the filenames to a db Collection a pull the random filename from there?
I get the random doc from a collection like this:
let query = [
{ $match: { status: 'published' } },
{ $sample: { size: 1 } }
];
let result = Questions.aggregate(query);
How can I get a random filename from a folder?
Here another video from my meteor app (feedback would be great)
Thanks