import { Meteor } from 'meteor/meteor'; const collectionOptions = Meteor.isClient ? { connection: null, } : {}; const Captions = new Mongo.Collection('captions', collectionOptions); if (Meteor.isServer) { Captions.createIndexAsync({ meetingId: 1, locale: 1 }); } export default Captions;