oh it might be because I have an id in the first place
TL;DR
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.
ZachHandley
7 Jul, 2023, 23:51
yup it was because I was sending the $id with the data to the createDocument
ZachHandley
7 Jul, 2023, 23:52
[SOLVED] $id is not allowed for creating new documents, try update instead