gpt4 book ai didi

javascript - 以 Express 方式将主干集合保存到 MongoDB

转载 作者:行者123 更新时间:2023-12-03 11:51:11 25 4
gpt4 key购买 nike

我四处寻找有关将集合保存到后端的教程,但到目前为止我还没有找到,将集合发送到服务器的正确方法是什么。

查看文档,它没有保存方法。

最佳答案

使用sync method在集合中。

synccollection.sync(method, collection, [options])

Uses Backbone.sync to persist the state of a collection to the server. Can be overridden for custom behavior.

关于javascript - 以 Express 方式将主干集合保存到 MongoDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25833670/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com