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.