Meteor collection.insert callback issues

前端 未结 1 1939
感动是毒
感动是毒 2021-02-15 19:33

According to the Meteor documentation....

collection.insert(doc, [callback])

callback Function

Optional. If prese

1条回答
  •  不知归路
    2021-02-15 20:05

    This was a bug, fixed in the next release. Now, if you provide a callback to insert, it will be called with error and result arguments, where result is the ID of the new document, or null if there's an error.

    0 讨论(0)
提交回复
热议问题