Mongo.Cursor

Cursors To create a cursor, use find. To access the documents in a cursor, use forEach, map, or fetch. Anywhere cursor.forEach(callback, [thisArg]) Source Call callback once for each matching document, sequentially and synchronously. 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. This interface is compatible with Array

App.icons

App.icons(icons) Set the icons for your mobile app. Arguments icons Object An Object where the keys are different devices and screen sizes, and values are image paths relative to the project root directory. Valid key values: iphone_2x (120x120) iphone_3x (180x180) ipad (76x76) ipad_2x (152x152) ipad_pro (167x167) ios_settings (29x29) ios_settings_2x (58x58) ios_settings_3x (87x87) ios_spotlight (40x40) ios_spotlight_2x (80x80) android_mdpi (48x48) android_hdpi (72x72) androi

customType.toJSONValue

Anywhere customType.toJSONValue() Source Serialize this instance into a JSON-compatible value.

Blaze.If

Client Blaze.If(conditionFunc, contentFunc, [elseFunc]) import { Blaze } from 'meteor/blaze' Source Constructs a View that renders content conditionally. Arguments conditionFunc Function A function to reactively re-run. Whether the result is truthy or falsy determines whether contentFunc or elseFunc is shown. An empty array is considered falsy. contentFunc Function A Function that returns renderable content. elseFunc Function Optional. A Function that returns renderable conte

this.added

Server this.added(collection, id, fields) Source Call inside the publish function. Informs the subscriber that a document has been added to the record set. Arguments collection String The name of the collection that contains the new document. id String The new document's ID. fields Object The fields in the new document. If _id is present it is ignored.

this.removed

Server this.removed(collection, id) Source Call inside the publish function. Informs the subscriber that a document has been removed from the record set. Arguments collection String The name of the collection that the document has been removed from. id String The ID of the document that has been removed.

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.

api.imply

package.js api.imply(packageNames, [architecture]) Give users of this package access to another package (by passing in the string packagename) or a collection of packages (by passing in an array of strings [packagename1, packagename2] Arguments packageNames String or Array of Strings Name of a package, or array of package names, with an optional @version component for each. architecture String or Array of Strings If you only use the package on the server (or the client), you can p

meteor help

meteor help Get help on meteor command line usage. Running meteor help by itself will list the common meteor commands. Running meteor help command will print detailed help about the command.

cursor.fetch

Anywhere cursor.fetch() Source Return all matching documents as an Array.