mongoose - 为什么猫鼬在使用 GraphQL 时不更新文档?
问题描述
这里有问题,你知道吗?
switchEventSellingStarted: async(_, {name, sellingStarted}) => {
Event.findOne({name: name}, function (err, event) {
event.sellingStarted = sellingStarted;
event.save();
return event;
});
}
解决方案
推荐阅读
- blender - 将新动画从 Blender 导入到 Unreal Engine 中的现有角色
- react-native - 根据参数在 BottomTabNavigator 上呈现不同的选项卡
- python - 在文本中的特定位置插入字符串
- node.js - 如何修复谷歌函数节点js上的“无法处理请求”
- git - remote.origin.fetch - 默认情况下如何设置,它依赖什么,如果没有明确的 git 配置,它可能会改变吗?
- jq - JQ将函数应用于dict但打印周围数据
- javascript - 在父组件内的子组件上触发 onPress 事件
- google-iam - 当我是项目的管理员时如何恢复权限?
- javascript - 如何为下拉列表中的多选设计 UI?
- javascript - 如何显示具有中心根的两棵树?