ZachHandleyOriginal post
Moderator
oh it might be because I have an id in the first place
Summary
The issue was resolved. The error occurred because the user was sending the `$id` with the data when creating new documents. The solution is to use the `update` function instead of `createDocument` and remove the `$id` from the initial data.