Can't fixture data with "insertMany()" in Meteor 1.4

I tried to update to Meteor 1.4, but I can’t use insertMany() in data fixtures

..........
Meteor.startup(function () {
    if (Location.find().count() == 0) {
        let pro = [
            {_id: '01', khName: 'បន្ទាយមានជ័យ', enName: 'Banteay Meanchey', parentId: '', parentDoc: ''},
            {_id: '02', khName: 'បាត់ដំបង', enName: 'Battambang', parentId: '', parentDoc: ''},
        ];

        Location.insertMany(pro);
    }
});

Use rawCollection()

1 Like