cursor.observeChanges

Anywhere cursor.observeChanges(callbacks) Source Watch a query. Receive callbacks as the result set changes. Only the differences between the old and new documents are passed to the callbacks. Arguments callbacks Object Functions to call to deliver the result set as it changes

this.error

Server this.error(error) Source Call inside the publish function. Stops this client's subscription, triggering a call on the client to the onStop callback passed to Meteor.subscribe, if any. If error is not a Meteor.Error, it will be sanitized. Arguments error Error The error to pass to the client.

collection.rawDatabase

Server collection.rawDatabase() Source Returns the Db object corresponding to this collection's database connection from the npm mongodb driver module which is wrapped by Mongo.Collection.

Code style

After reading this article, you’ll know: Why it’s a good idea to have consistent code style Which style guide we recommend for JavaScript code How to set up ESLint to check code style automatically Style suggestions for Meteor-specific patterns, such as Methods, publications, and more Benefits of consistent style Countless hours have been spent by developers throughout the years arguing over single vs. double quotes, where to put brackets, how many spaces to type, and all kinds of other cosme

spacebars

spacebars Spacebars is a Meteor template language inspired by Handlebars. It shares some of the spirit and syntax of Handlebars, but it has been tailored to produce reactive Meteor templates when compiled.

meteor create

meteor create name Create a new Meteor project. By default, makes a subdirectory named name and copies in the template app. You can pass an absolute or relative path. You can use the --package option, to create a new package. If used in an existing app, this command will create a package in the packages directory.

Package.onUse

Package Definition Define dependencies and expose package methods with the Package.onUse handler. This section lets you define what packages your package depends on, what packages are implied by your package, and what object your package is exported to. package.js Package.onUse(func) Define package dependencies and expose package methods. Arguments func Function A function that takes in the package control api object, which keeps track of dependencies and exports. package.js

meteor admin

meteor admin Catch-all for miscellaneous commands that require authorization to use. Some example uses of meteor admin include adding and removing package maintainers and setting a homepage for a package. It also includes various helpful functions for managing a Meteor release. Run meteor help admin for more information.

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.