0

This code won't save to my MongoDB. If I change doc.foursqure_key to doc.username or doc.password, it saves just fine.

@User.findOne({ username: 'justin' }, (err, doc) =>
        doc.foursquare_key = "your mom"
        doc.save()

My User schema: {username, password, foursquare_key}

Been staring for 2 days... driving me crazy. I don't understand why I can't save this one field, but the others are fine! Any help is amazing!

framerate
  • 36
  • 5

0 Answers0