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.

Accounts.setUsername

Server Accounts.setUsername(userId, newUsername) import { Accounts } from 'meteor/accounts-base' Source Change a user's username. Use this instead of updating the database directly. The operation will fail if there is an existing user with a username only differing in case. Arguments userId String The ID of the user to update. newUsername String A new username for the user.

AccountsCommon#config

Anywhere accountsClientOrServer.config(options) Source Set global accounts options. Options sendVerificationEmail Boolean New users with an email address will receive an address verification email. forbidClientAccountCreation Boolean Calls to createUser from the client will be rejected. In addition, if you are using accounts-ui, the "Create account" link will not be available. restrictCreationByEmailDomain String or Function If set to a string, only allows new users if the do

EJSON.addType

Anywhere EJSON.addType(name, factory) import { EJSON } from 'meteor/ejson' Source Add a custom datatype to EJSON. Arguments name String A tag for your custom type; must be unique among custom data types defined in your project, and must match the result of your type's typeName method. factory Function A function that deserializes a JSON-compatible value into an instance of your type. This should match the serialization performed by your type's toJSONValue method.

Blaze.currentView

Client Blaze.currentView import { Blaze } from 'meteor/blaze' Source The View corresponding to the current template helper, event handler, callback, or autorun. If there isn't one, null.

meteor debug

meteor debug Run the project, but suspend the server process for debugging. The server process will be suspended just before the first statement of server code that would normally execute. In order to continue execution of server code, use either the web-based Node Inspector or the command-line debugger (further instructions will be printed in the console). Breakpoints can be set using the debugger keyword, or through the web UI of Node Inspector ("Sources" tab). The server process debugger wil

Meteor.setInterval

Anywhere Meteor.setInterval(func, delay) import { Meteor } from 'meteor/meteor' Source Call a function repeatedly, with a time delay between calls. Arguments func Function The function to run delay Number Number of milliseconds to wait between each function call.

Template.instance

Client Template.instance() import { Template } from 'meteor/templating' Source The template instance corresponding to the current template helper, event handler, callback, or autorun. If there isn't one, null.

{{loggingIn}}

{{ loggingIn }} Source Calls Meteor.loggingIn().

Accounts.addEmail

Server Accounts.addEmail(userId, newEmail, [verified]) import { Accounts } from 'meteor/accounts-base' Source Add an email address for a user. Use this instead of directly updating the database. The operation will fail if there is a different user with an email only differing in case. If the specified user has an existing email only differing in case however, we replace it. Arguments userId String The ID of the user to update. newEmail String A new email address for the user. v