Calonz
Calonz11mo ago

Property '_id' does not exist on type 'Id<"users">'.

Can someone help me understand what I'm doing wrong in my schema or the logic in my mutation function? I've attached the function where I'm getting an error and the schema as well.
No description
No description
4 Replies
jamwt
jamwt11mo ago
hey there. .insert returns the document's id, not the whole document
jamwt
jamwt11mo ago
so you don't need to say account._id, you can insert account directly and it would be more accurate to name it accountId or something since it is only the id of the document
Calonz
CalonzOP11mo ago
Thanks! @jamwt I appreciate your help!

Did you find this page helpful?