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.

cursor.map

Anywhere cursor.map(callback, [thisArg]) Source Map callback over all matching documents. Returns an Array. Arguments callback Function Function to call. It will be called with three arguments: the document, a 0-based index, and cursor itself. thisArg Any An object which will be the value of this inside callback.

Mongo.Collection

Anywhere new Mongo.Collection(name, [options]) import { Mongo } from 'meteor/mongo' Source Constructor for a Collection Arguments name String The name of the collection. If null, creates an unmanaged (unsynchronized) local collection. Options connection Object The server connection that will manage this collection. Uses the default connection if not specified. Pass the return value of calling DDP.connect to specify a different server. Pass null to specify no connection. Unmanag

Methods

After reading this article, you’ll know: What Methods are in Meteor and how they work in detail. Best practices for defining and calling Methods. How to throw and handle errors with Methods. How to call a Method from a form. What is a Method? Methods are Meteor’s remote procedure call (RPC) system, used to save user input events and data that come from the client. If you’re familiar with REST APIs or HTTP, you can think of them like POST requests to your server, but with many nice features op

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.

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.

Npm.depends

package.js Npm.depends(dependencies) Specify which NPM packages your Meteor package depends on. Arguments dependencies Object An object where the keys are package names and the values are one of: Version numbers in string form Http(s) URLs to a git commit by SHA. Git URLs in the format described here Https URL example: Npm.depends({ moment: "2.8.3", async: "https://github.com/caolan/async/archive/71fa2638973dafd8761fa5457c472a312cc820fe.tar.gz" }); Git URL example: Npm.depends({

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.publish

Server Meteor.publish(name, func) import { Meteor } from 'meteor/meteor' Source Publish a record set. Arguments name String Name of the record set. If null, the set has no name, and the record set is automatically sent to all connected clients. func Function Function called on the server each time a client subscribes. Inside the function, this is the publish handler object, described below. If the client passed arguments to subscribe, the function is called with the same argument

Blaze.Template

Client new Blaze.Template([viewName], renderFunction) import { Blaze } from 'meteor/blaze' Source Constructor for a Template, which is used to construct Views with particular name and content. Arguments viewName String Optional. A name for Views constructed by this Template. See view.name. renderFunction Function A function that returns renderable content. This function is used as the renderFunction for Views constructed by this Template.