#delete document problems

22 messages · Page 1 of 1 (latest)

dark helm
#

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.

dark helm
#

<@&1201605261148815501> Can one of you help me?
because the problem spreads now to other collections and i can't work on the project... :/

mint laurel
ashen pike
#

Is params.tournamentId an object? Ensure it’s just a string

#

Could be permissions if you use relationships

dark helm
#

the code snippet don't matter really, because i can't delete from the cloud either @ashen pike @mint laurel

#

and no not about permissions, all are on ALL and have all the permissions

#

that was in the tournament collection, and now when i wanna update something in the checkins collection. i get also an error related to the tournamentid

mint laurel
dark helm
#

here, but this won't really help

#

@mint laurel

grave birch
dark helm
grave birch
#

when you create the relationship, which action did you chose?

dark helm
#

i deleted now the whole collection and recreated everything...

#

but i had a one way many to one relation ship -> checkIns to Tournaments
and i deleted the tournaments collection, now when i go in to checkins and try to recreate this relationship i get this message: Attribute with the requested key already exists. Attribute keys must be unique, try again with a different key.

Is there a way to delete the hidden key from the tournaments collection? it's because tournaments has the same id and it would be very time consuming to create again a new collection with an different collection id for tournaments and change this in the code base.

mint laurel
#

cc: @loud radish

loud radish
prime frost
#

same problem.. any way to delete hidden keys? "Attribute with the requested key already exists. " but this attribute was deleted (by teleting the relationship) and is not shown any more