parweb
03/07/2018, 1:26 PMimport { getUserId, Context } from '../../utils'
export async function addLocationUser(parent, args, ctx: Context, info) {
const userId = getUserId(ctx)
const user = await ctx.db.mutation.updateUser({
where: { id: userId },
data: {
location: { upsert: args },
},
})
return user
}