Skip to content

Instantly share code, notes, and snippets.

@crcn
Last active August 29, 2015 14:18
Show Gist options
  • Save crcn/5061975bd72079b70fa7 to your computer and use it in GitHub Desktop.
Save crcn/5061975bd72079b70fa7 to your computer and use it in GitHub Desktop.
// model(db, query)
var model = mesh.model(db, { _id: "ball" });
model.watch(function() {
});
model.save(function() {
});
model.load(function() {
});
model.set("active", !model.active);
model.save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment