oauth-encryption

oauth-encryption Encrypts sensitive login secrets stored in the database such as a login service's application secret key and users' access tokens.

customType.typeName

Anywhere customType.typeName() Source Return the tag used to identify this type. This must match the tag used to register this type with EJSON.addType.

Collections and Schemas

After reading this guide, you’ll know: The different types of MongoDB collections in Meteor, and how to use them. How to define a schema for a collection to control its content. What to consider when defining your collection’s schema. How to enforce the schema when writing to a collection. How to carefully change the schema of your collection. How to deal with associations between records. MongoDB collections in Meteor At its core, a web application offers its users a view into, and a way to

Package.onTest

Unit Tests Set up your tests with the Package.onTest handler, which has an interface that's parallel to that of the onUse handler. The tests will need to depend on the package that you have just created. For example, if your package is the email package, you have to call api.use('email') in order to test the package. If you used meteor create to set up your package, Meteor will create the required scaffolding in package.js, and you'll only need to add unit test code in the _test.js file that

this.onStop

Server this.onStop(func) Source Call inside the publish function. Registers a callback function to run when the subscription is stopped. Arguments func Function The callback function

meteor update

meteor update Attempts to bring you to the latest version of Meteor, and then to upgrade your packages to their latest versions. By default, update will not break compatibility. For example, let's say packages A and B both depend on version 1.1.0 of package X. If a new version of A depends on X@2.0.0, but there is no new version of package B, running meteor update will not update A, because doing so will break package B. You can pass in the flag --packages-only to update only the packages, and

Template.registerHelper

Client Template.registerHelper(name, function) import { Template } from 'meteor/templating' Source Defines a helper function which can be used from all templates. Arguments name String The name of the helper function you are defining. function Function The helper function itself.

Tracker.onInvalidate

Client Tracker.onInvalidate(callback) import { Tracker } from 'meteor/tracker' Source Registers a new onInvalidate callback on the current computation (which must exist), to be called immediately when the current computation is invalidated or stopped. Arguments callback Function A callback function that will be invoked as func(c), where c is the computation on which the callback is registered.

App.configurePlugin

App.configurePlugin(id, config) Set the build-time configuration for a Cordova plugin. Arguments id String The identifier of the plugin you want to configure. config Object A set of key-value pairs which will be passed at build-time to configure the specified plugin.

Tracker.afterFlush

Client Tracker.afterFlush(callback) import { Tracker } from 'meteor/tracker' Source Schedules a function to be called during the next flush, or later in the current flush if one is in progress, after all invalidated computations have been rerun. The function will be run once and not on subsequent flushes unless afterFlush is called again. Arguments callback Function A function to call at flush time.