本文整理匯總了TypeScript中meteor/mongo.Mongo.Collection._dropIndex方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Mongo.Collection._dropIndex方法的具體用法?TypeScript Mongo.Collection._dropIndex怎麽用?TypeScript Mongo.Collection._dropIndex使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類meteor/mongo.Mongo.Collection
的用法示例。
在下文中一共展示了Mongo.Collection._dropIndex方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
const privateSetting = Meteor.settings['somePrivateSetting'];
const deeperPrivateSetting = Meteor.settings['somePrivateSettings']['deeperSetting'];
// Covers https://github.com/meteor-typings/meteor/issues/9
const username = (Template.instance().find('#username') as HTMLInputElement).value;
// Covers https://github.com/meteor-typings/meteor/issues/3
BrowserPolicy.framing.disallow();
BrowserPolicy.content.allowEval();
// Covers https://github.com/meteor-typings/meteor/issues/18
if (Meteor.isDevelopment) {
Rooms._dropIndex({ field: 1 });
}
// Covers https://github.com/meteor-typings/meteor/issues/20
Rooms.find().count(true);
// Covers https://github.com/meteor-typings/meteor/issues/21
if (Meteor.isTest) {
// do something
}
DDPRateLimiter.addRule({ userId: 'foo' }, 5, 1000);
DDPRateLimiter.addRule({ userId: userId => userId == 'foo' }, 5, 1000);