Accounts.findUserByEmail

Server Accounts.findUserByEmail(email) import { Accounts } from 'meteor/accounts-base' Source Finds the user with the specified email. First tries to match email case sensitively; if that fails, it tries case insensitively; but if more than one user matches the case insensitive search, it returns null. Arguments email String The email address to look for

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

collection.rawCollection

Server collection.rawCollection() Source Returns the Collection object corresponding to this collection from the npm mongodb driver module which is wrapped by Mongo.Collection.

api.addAssets

package.js api.addAssets(filenames, architecture) Specify asset files for your package. They can be accessed via the Assets API from the server, or at the URL /packages/username_package-name/file-name from the client, depending on the architecture passed. Arguments filenames String or Array of Strings Paths to the asset files. architecture String or Array of Strings Specify where this asset should be available (e.g., 'server', 'client', 'web.browser', 'web.cordova'). You can speci

cursor.fetch

Anywhere cursor.fetch() Source Return all matching documents as an Array.

meteor help

meteor help Get help on meteor command line usage. Running meteor help by itself will list the common meteor commands. Running meteor help command will print detailed help about the command.

api.imply

package.js api.imply(packageNames, [architecture]) Give users of this package access to another package (by passing in the string packagename) or a collection of packages (by passing in an array of strings [packagename1, packagename2] Arguments packageNames String or Array of Strings Name of a package, or array of package names, with an optional @version component for each. architecture String or Array of Strings If you only use the package on the server (or the client), you can p

this.isSimulation

Anywhere this.isSimulation Source Access inside a method invocation. Boolean value, true if this invocation is a stub.

events

Client Template.myTemplate.events(eventMap) import { Template } from 'meteor/templating' Source Specify event handlers for this template. Arguments eventMap Event Map Event handlers to associate with this template.

meteor admin

meteor admin Catch-all for miscellaneous commands that require authorization to use. Some example uses of meteor admin include adding and removing package maintainers and setting a homepage for a package. It also includes various helpful functions for managing a Meteor release. Run meteor help admin for more information.