Back

[CLOSED] Error using relationship parameter name in select query

  • 0
  • Databases
obiwanzenobi
11 Sep, 2023, 20:21
TypeScript
[Error] Method: GET
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
[Error] Type: PDOException
[Error] Message: Unknown column 'table_main.assignedToCategories' in 'field list'
[Error] File: @swoole-src/library/core/Database/PDOStatementProxy.php
[Error] Line: 62

select([\"$id\",\"zdayId\",\"$permissions\",\"assignedToCategories.*\"]) assignedToCategories is relationship

TL;DR
The user encountered an error when using the relationship parameter name in a select query. They mentioned that there is no official documentation and provided a link to a related post on Discord. The user also mentioned that a similar query works for different collections. However, someone stated that relationships do not support queries at the moment. The error message suggests that there is an unknown column 'table_main.assignedToCategories' in the field list. Solution: Unfortunately, there does not seem to be a solution provided in the support thread. The issue may be related to the lack of support for relationship queries.
Guille
11 Sep, 2023, 20:35

Relationship do not support queries at this moment 🥹

obiwanzenobi
11 Sep, 2023, 20:37

similar query works for different collections

Guille
11 Sep, 2023, 20:40

As isn't officially supported I can't tell you why sometimes works and other don't, there not documentation, I have just saw this post related to Query.select(): https://discord.com/channels/564160730845151244/1096309125979320382

Guille
11 Sep, 2023, 20:40

I don't know if that can be helpful

obiwanzenobi
12 Sep, 2023, 10:46

Error using relationship parameter name in select query

Drake
12 Sep, 2023, 17:29

[CLOSED] Error using relationship parameter name in select query

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