I need this document structure:
lessons.insert({
name: 'some_name',
audio_files: [
[
{
paths: 'paths/to/file1',
transcriptions: [
'Transcript ..........1',
'Transcript ..........2',
'Transcript ..........3',
]
}
],
[
{
paths: 'paths/to/file2',
transcriptions: [
'Transcript ..........1',
'Transcript ..........2',
'Transcript ..........3',
]
}
],
]
});
I tried using the following SimpleSchema to describe it:
audio_files: {
type: [[String]]
}
This is wrong config.
How can I properly make this schema?