#Returning data from Tanstack Query useMutation wrapper

2 messages · Page 1 of 1 (latest)

red coral
#

Maybe i'm missing something but is it not possible to return data returned from the convex tanstack query mutation wrapper?

export const createDealMutation = mutation({
    args: DealsTable.withoutSystemFields,
    handler: async (ctx, args) => {
        const dealId = await insertDeal(ctx, args)
        return dealId
    },
})
vale vessel
#

Is the data not coming through, or is it working but the types are bad?