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

Meteor.loginWith<Service>

Client Meteor.loginWith<ExternalService>([options], [callback]) import { Meteor } from 'meteor/meteor' Source Log the user in using an external service. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure. The callback cannot be called if you are using the "redirect" loginStyle, because the app will have reloaded in the meantime; try using client-side login hooks instead. Options requestPermissions A

Accounts.changePassword

Client Accounts.changePassword(oldPassword, newPassword, [callback]) import { Accounts } from 'meteor/accounts-base' Source Change the current user's password. Must be logged in. Arguments oldPassword String The user's current password. This is not sent in plain text over the wire. newPassword String A new password for the user. This is not sent in plain text over the wire. callback Function Optional callback. Called with no arguments on success, or with a single Error argume

App.accessRule

App.accessRule(pattern, [options]) Set a new access rule based on origin domain for your app. By default your application has a limited list of servers it can contact. Use this method to extend this list. Default access rules: tel:*, geo:*, mailto:*, sms:*, market:* are allowed and are handled by the system (e.g. opened in the phone app or an email client) http://localhost:* is used to serve the app's assets from. The domain or address of the Meteor server to connect to for DDP and hot cod

Cordova.depends

package.js Cordova.depends(dependencies) Specify which Cordova / PhoneGap plugins your Meteor package depends on. Plugins are installed from plugins.cordova.io, so the plugins and versions specified must exist there. Alternatively, the version can be replaced with a GitHub tarball URL as described in the Cordova page of the Meteor wiki on GitHub. Arguments dependencies Object An object where the keys are plugin names and the values are version numbers or GitHub tarball URLs in string

EJSON.toJSONValue

Anywhere EJSON.toJSONValue(val) import { EJSON } from 'meteor/ejson' Source Serialize an EJSON-compatible value into its plain JSON representation. Arguments val EJSON-able Object A value to serialize to plain JSON.

Modifiers

Mongo-Style Modifiers A modifier is an object that describes how to update a document in place by changing some of its fields. Some examples: // Set the 'admin' property on the document to true {$set: {admin: true}} // Add 2 to the 'votes' property, and add "Traz" // to the end of the 'supporters' array {$inc: {votes: 2}, $push: {supporters: "Traz"}} But if a modifier doesn't contain any $-operators, then it is instead interpreted as a literal document, and completely replaces whatever was

EJSON.clone

Anywhere EJSON.clone(val) import { EJSON } from 'meteor/ejson' Source Return a deep copy of val. Arguments val EJSON-able Object A value to copy.

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.

this.stop

Server this.stop() Source Call inside the publish function. Stops this client's subscription and invokes the client's onStop callback with no error.