meteor remove

meteor remove package Removes a package previously added to your Meteor project. For a list of the packages that your application is currently using, run meteor list. This removes the package entirely. To continue using the package, but remove its version constraint, use meteor add. Meteor does not downgrade transitive dependencies unless it's necessary. This means that if running meteor add A upgrades A's parent package X to a new version, your project will continue to use X at the new versio

collection.update

Anywhere collection.update(selector, modifier, [options], [callback]) Source Modify one or more documents in the collection. Returns the number of affected documents. Arguments selector Mongo Selector, Object ID, or String Specifies which documents to modify modifier Mongo Modifier Specifies how to modify the documents callback Function Optional. If present, called with an error object as the first argument and, if no error, the number of affected documents as the second.

Meteor.release

Anywhere Meteor.release import { Meteor } from 'meteor/meteor' Source Meteor.release is a string containing the name of the release with which the project was built (for example, "1.2.3"). It is undefined if the project was built using a git checkout of Meteor.

collection.upsert

Anywhere collection.upsert(selector, modifier, [options], [callback]) Source Modify one or more documents in the collection, or insert one if no matching documents were found. Returns an object with keys numberAffected (the number of documents modified) and insertedId (the unique _id of the document that was inserted, if any). Arguments selector Mongo Selector, Object ID, or String Specifies which documents to modify modifier Mongo Modifier Specifies how to modify the documents

collection.insert

Anywhere collection.insert(doc, [callback]) Source Insert a document in the collection. Returns its unique _id. Arguments doc Object The document to insert. May not yet have an _id attribute, in which case Meteor will generate one for you. callback Function Optional. If present, called with an error object as the first argument and, if no error, the _id as the second.

Field specifiers

Field Specifiers Queries can specify a particular set of fields to include or exclude from the result object. To exclude specific fields from the result objects, the field specifier is a dictionary whose keys are field names and whose values are 0. All unspecified fields are included. Users.find({}, {fields: {password: 0, hash: 0}}) To include only specific fields in the result documents, use 1 as the value. The _id field is still included in the result. Users.find({}, {fields: {firstname: 1

meteor shell

meteor shell When meteor shell is executed in an application directory where a server is already running, it connects to the server and starts an interactive shell for evaluating server-side code. Multiple shells can be attached to the same server. If no server is currently available, meteor shell will keep trying to connect until it succeeds. Exiting the shell does not terminate the server. If the server restarts because a change was made in server code, or a fatal exception was encountered, t

Meteor.isClient

Anywhere Meteor.isClient import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in client environment.

Blaze.toHTML

Client Blaze.toHTML(templateOrView) import { Blaze } from 'meteor/blaze' Source Renders a template or View to a string of HTML. Arguments templateOrView Blaze.Template or Blaze.View The template (e.g. Template.myTemplate) or View object from which to generate HTML.

Template.registerHelper

Client Template.registerHelper(name, function) import { Template } from 'meteor/templating' Source Defines a helper function which can be used from all templates. Arguments name String The name of the helper function you are defining. function Function The helper function itself.