ThePndaXpres
ThePndaXpres5mo ago

ctx.db.insert not returning id

SOLVED I am trying to insert a field and it is not returning the id. It is instead returning 'finished' Here is my code: export const populateData = internalMutation({ args: { jsonSchema: v.json() }, handler: async (ctx, args) => { const idOut = await ctx.db.insert("forms", { name: args.jsonSchema.name, schema: args.jsonSchema.arguments, }); console.log(idOut); return idOut; }, });
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?