gihrig
03/07/2018, 11:06 PMlawjolla
03/07/2018, 11:36 PMbeb
03/08/2018, 12:55 AMharmony
03/08/2018, 12:59 AMjustinrich
03/08/2018, 5:47 AMgihrig
03/08/2018, 6:05 AMasync updateItem(parent, args, ctx, info) {
// Exclude id from data
const { id, ...data } = args
return ctx.db.mutation.updateItem(
{
where: { id },
data
},
info,
)
See here for more code detail: https://graphcool.slack.com/archives/C0MQJ62NL/p1520463505000122
Thanks to @lawjolla and @harmony for getting me started in the right direction 🙂harmony
03/08/2018, 12:54 PMupdateMote(moteId: ID!, update: MoteUpdateInput!): Mote!