如何在浏览器控制台上禁用Meteor.Collection.get()

时间:2017-08-23 04:06:51

标签: node.js meteor npm ecmascript-6

情境:

我在Meteor 1.5中创建了一个应用程序,问题是当我在chrome / firefox控制台中运行Meteor.Collection.get('CollectionName').find().fetch()时,我看到了结果。

要求:

    应在浏览器控制台上禁用
  1. Meteor.Collection.get('CollectionName')
  2. 如果我们尝试使用get()

    访问集合,则必须显示以下错误消息
    Uncaught TypeError: Meteor.Collection.get is not a function
    
  3. 分析和专家观点

    我收到了评论,检查是否安装了dburles:mongo-collection-instances。但它也不在我的包裹里。我被困在哪个软件包允许我在浏览器控制台上查看集合。

    我的Meteor包列表:

        meteor-base@1.1.0
        mobile-experience@1.0.4
        mongo@1.1.18
        blaze-html-templates
        reactive-var@1.0.11
        tracker@1.1.3
        standard-minifier-css@1.3.4
        standard-minifier-js@2.1.0
        es5-shim@4.6.15
        ecmascript@0.8.0
        kadira:flow-router
        kadira:blaze-layout
        less@2.7.9
        practicalmeteor:mocha
        johanbrook:publication-collector
        momentjs:moment
        twbs:bootstrap
        ian:accounts-ui-bootstrap-3
        accounts-password@1.3.6
        aldeed:collection2
        check@1.2.5
        ostrio:loggerfile
        mizzao:user-status
        gwendall:auth-client-callbacks
        meteorhacks:ssr
        bryanmorgan:webshot
        manuelro:blaze-math
        awatson1978:browser-detection
        mrt:flash-messages
        babrahams:transactions
        themeteorchef:bert
        session@1.1.7
        iain:accounting
        alanning:roles
        reywood:publish-composite
        aslagle:reactive-table
        natestrauser:select2
        dynamic-import
        aldeed:autoform
        percolate:synced-cron
        mixmax:smart-disconnect
        pfafman:filesaver
        harrison:papa-parse
        cfs:standard-packages
        cfs:filesystem
        tmeasday:publish-counts
        maazalik:highcharts
        jcbernack:reactive-aggregate
        email
        tsega:bootstrap3-datetimepicker
    

0 个答案:

没有答案
相关问题