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.


4 Replies
hey there.
.insert returns the document's id, not the whole documentso 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 documentThanks! @jamwt I appreciate your help!