标签: mongoose graphql
这里有些问题,你知道吗?
switchEventSellingStarted: async(_, {name, sellingStarted}) => { Event.findOne({name: name}, function (err, event) { event.sellingStarted = sellingStarted; event.save(); return event; }); }