Accounts.onEnrollmentLink

Client Accounts.onEnrollmentLink import { Accounts } from 'meteor/accounts-base' Source Register a function to call when an account enrollment link is clicked in an email sent by Accounts.sendEnrollmentEmail. This function should be called in top-level code, not inside Meteor.startup(). Arguments callback Function The function to call. It is given two arguments: token: A password reset token that can be passed to Accounts.resetPassword to give the newly enrolled account a password.

Accounts.sendVerificationEmail

Server Accounts.sendVerificationEmail(userId, [email]) import { Accounts } from 'meteor/accounts-base' Source Send an email with a link the user can use verify their email address. Arguments userId String The id of the user to send email to. email String Optional. Which address of the user's to send the email to. This address must be in the user's emails list. Defaults to the first unverified email in the list.

Blaze.toHTML

Client Blaze.toHTML(templateOrView) import { Blaze } from 'meteor/blaze' Source Renders a template or View to a string of HTML. Arguments templateOrView Blaze.Template or Blaze.View The template (e.g. Template.myTemplate) or View object from which to generate HTML.

api.use

package.js api.use(packageNames, [architecture], [options]) Depend on package packagename. Arguments packageNames String or Array of Strings Packages being depended on. Package names may be suffixed with an @version tag. In general, you must specify a package's version (e.g., 'accounts@1.0.0' to use version 1.0.0 or a higher compatible version (ex: 1.0.1, 1.5.0, etc.) of the accounts package). If you are sourcing core packages from a Meteor release with versionsFrom, you may leave off

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

collection.insert

Anywhere collection.insert(doc, [callback]) Source Insert a document in the collection. Returns its unique _id. Arguments doc Object The document to insert. May not yet have an _id attribute, in which case Meteor will generate one for you. callback Function Optional. If present, called with an error object as the first argument and, if no error, the _id as the second.

meteor remove

meteor remove package Removes a package previously added to your Meteor project. For a list of the packages that your application is currently using, run meteor list. This removes the package entirely. To continue using the package, but remove its version constraint, use meteor add. Meteor does not downgrade transitive dependencies unless it's necessary. This means that if running meteor add A upgrades A's parent package X to a new version, your project will continue to use X at the new versio

collection.update

Anywhere collection.update(selector, modifier, [options], [callback]) Source Modify one or more documents in the collection. Returns the number of affected documents. Arguments selector Mongo Selector, Object ID, or String Specifies which documents to modify modifier Mongo Modifier Specifies how to modify the documents callback Function Optional. If present, called with an error object as the first argument and, if no error, the number of affected documents as the second.

this.ready

Server this.ready() Source Call inside the publish function. Informs the subscriber that an initial, complete snapshot of the record set has been sent. This will trigger a call on the client to the onReady callback passed to Meteor.subscribe, if any.

Meteor.loggingIn

Client Meteor.loggingIn() import { Meteor } from 'meteor/meteor' Source True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress. A reactive data source.