Back

relationships are very unstable

  • 0
  • Self Hosted
rohan
12 Nov, 2023, 16:26

Hi, im encountering a number of problems especially while deleting the documents.. it keeps throwing server error

appwrite logs

TypeScript
[Error] Timestamp: 2023-11-12T16:24:46+00:00
[Error] Method: DELETE
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents/:documentId
[Error] Type: PDOException
[Error] Message: Unknown column 'castType' in 'field list'
[Error] File: @swoole-src/library/core/Database/PDOStatementProxy.php
[Error] Line: 62
TL;DR
The user is experiencing issues with deleting documents in a web SDK. They have provided a link to a GitHub issue where the problem is discussed. The user has three collections with nested relationships, and when trying to delete documents, it throws a server error with the message "Unknown column 'castType' in 'field list'." Solution: The user has reported the issue on GitHub and should wait for a response from the developers.
Eldad
12 Nov, 2023, 16:28

@Jake Can you please take a look here?

D5
12 Nov, 2023, 21:49

Do you know what's the relationship that failed or are you able to replicate the issue by following some steps?

Drake
12 Nov, 2023, 22:03

Details including the attributes and what data there is would also help

rohan
13 Nov, 2023, 07:12

i have created a demo project in my appwrite cloud

rohan
13 Nov, 2023, 07:12

can you access that and check it?

rohan
13 Nov, 2023, 07:13

basically when there are nested relations the delete is not working

rohan
13 Nov, 2023, 07:16

basically i have three collections

  1. demo 3 is two way one to many relationship with demo 2
  2. demo 2 is two way many to many relationship with demo 1
D5
13 Nov, 2023, 08:35

Do you have set delete behaviour?

rohan
13 Nov, 2023, 08:35

Yes its NULL

Drake
13 Nov, 2023, 16:18

no we cannot

Drake
13 Nov, 2023, 16:19

and what exact steps are you taking? please, be detailed so we can reproduce

rohan
13 Nov, 2023, 17:17

@Steven its just this and create documents in all three collections

rohan
13 Nov, 2023, 17:18

and try to delete a document from the demo3 collection

Drake
13 Nov, 2023, 18:14
rohan
13 Nov, 2023, 18:17

but when i try to delete it form the web sdk it works...

Drake
13 Nov, 2023, 18:49

in my tests, it depends on what's set for the documents and which document you're deleting first

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