Skip to content

Save documents #17

Closed
Closed
@yamila-fraiman

Description

@yamila-fraiman

Is it possible to support saving existing documents. For example

db.User.findById('5997a409df4cc84e8ca3a8de').exec((err, user) => {
    lodash.assign(user, req.body);
    let transaction = Fawn.Task();
    transaction.save(user);
    transaction.update(....)
    transaction.run({useMongoose: true})
});

Actually if I try this code, I receive duplicated id because creates a new collection with same id

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions