In this very simple app, insert into DB by submit is not working, help?

Resolutions = new Mongo.Collection(‘resolutions’);

if (Meteor.isClient) {
resolutions: function(){
return Resolutions.find();
‘submit .new-resolution’: function(event){

    title: title,
    createdAt: new Date()
return false;//avoid refresh


if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup



Monthly resolutions

  {{#each resolutions}}
   	{{> resolution}}
  • {{title}}
  • Your Template needs to subscribe to a server publish function that exposes the Resolutions data you want.

    if (Meteor.isServer) {
    Meteor.publish('allResolutions', function() {
       return Resolutions.find();
    if (Meteor.isClient) {
    Template.onCreated(function() {


    Take a look at the relevant section in the guide:

    I still have autopublish on, and can insert into the db from my js console.
    So this is probably not the solution.

    Can you edit your code so it’s escaped and displayed properly in your post? See the CommonMark quick reference for details. This will make it easier to help troubleshoot, as we can’t see parts of your pasted code.

    I restarted the server, and now it’s working…
    thanks for the help.

    this error might have resulted from my mongo db console being opened, at the same time.
    mgiht only accept one connection.
    could this be it?