zhao/imports/api/collections/Rooms.js
2020-11-27 00:36:02 -06:00

8 lines
205 B
JavaScript

import { Mongo } from "meteor/mongo";
let Rooms = new Mongo.Collection("rooms");
let collection = Rooms.rawCollection();
collection.ensureIndex({ joinCode: 1 }, { unique: true });
export default Rooms;