keystonejs/keystone-classic

AutoKey not working for upserts.

Open

#854 opened on Jan 4, 2015

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (14,656 stars) (2,288 forks)batch import
enhancementhelp wantedneeds input

Description

i.e.

model.findOneAndUpdate(query, {name: name}, {upsert: true}, function (err, item)  {
  cb(err, item ? item.id : null);
});

Contributor guide