Back

[SOLVED] $id is not allowed for creating new documents, try update instead

  • 0
  • Databases
  • Flutter
ZachHandley
7 Jul, 2023, 23:50

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

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more