I usually manipulate object by creating them unique “codes”. (So I create an object with the code “test” and fetch the object back using objects.find({ code: "test" }). But I find this weird and counter-productive.
I’d like to know if it’s possible to simply create a new object, and get its saved object or simply its ObjectId back once saved?
That would be nice if we could do this:
objects.save({ name: “Test Object” });
And get { ObjectId: "47cc67093475061e3d95369d", name: "Test Object" } in return.
Is there any way to do so?
Thanks!
Is this what you’re looking for?