Back

delete document problems

  • 1
  • Web
joe_2512 <-- UBI
15 Dec, 2024, 04:17

i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document id which i want to delete... why does it want to access or check the attributes?

return await databases.deleteDocument( DATABASE_ID, COLLECTION_IDS.tournaments, params.tournamentId );

that's the excact error: Invalid query: Attribute not found in schema: tournamentId

also tested it in the cloud, i get the same error by selecting the document and try to delete it. the related documents (relation ship attribute) are getting deleted correctly but not the main document i want.

TL;DR
Problem: Developers are encountering an error when attempting to delete a document, receiving an "attribute not found in schema" message. The issue is arising when trying to delete a document with the 'tournamentId'. Solution: Ensure the 'tournamentId' is a valid attribute in the schema before attempting to delete the document. Check the schema and adjust the deletion query accordingly to include the correct attribute.
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