EJSON.parse

Anywhere EJSON.parse(str) import { EJSON } from 'meteor/ejson' Source Parse a string into an EJSON value. Throws an error if the string is not valid EJSON. Arguments str String A string to parse into an EJSON value.

dependency.depend

Client dependency.depend([fromComputation]) Source Declares that the current computation (or fromComputation if given) depends on dependency. The computation will be invalidated the next time dependency changes. If there is no current computation and depend() is called with no arguments, it does nothing and returns false. Returns true if the computation is a new dependent of dependency rather than an existing one. Arguments fromComputation Tracker.Computation An optional computation

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

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

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.

HTTP.get

Anywhere HTTP.get(url, [callOptions], [asyncCallback]) import { HTTP } from 'meteor/http' Source Send an HTTP GET request. Equivalent to calling HTTP.call with "GET" as the first argument. Arguments url String The URL to which the request should be sent. callOptions Object Options passed on to HTTP.call. asyncCallback Function Callback that is called when the request is completed. Required on the client.

Testing

Introduction Testing allows you to ensure your application works the way you think it does, especially as your codebase changes over time. If you have good tests, you can refactor and rewrite code with confidence. Tests are also the most concrete form of documentation of expected behavior, since other developers can figure out how to use your code by reading the tests. Automated testing is critical because it allows you to run a far greater set of tests much more often than you could manually,

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.

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.

AccountsClient

Client new AccountsClient(options) import { AccountsClient } from 'meteor/accounts-base' Source Constructor for the Accounts object on the client. Options connection Object Optional DDP connection to reuse. ddpUrl String Optional URL for creating a new DDP connection.