Back

[SOLVED] Query.select Behavior Change in Version 1.4.1

  • 0
  • Databases
  • Flutter
Shmuel
5 Sep, 2023, 17:02
TL;DR
Title: [SOLVED] Query.select Behavior Change in Version 1.4.1 - User encountered a behavior change in Query.select in version 1.4.1 - User had problems with initializing a project - Solution: Downgrade to version 2.0.2 or wait for a new release - User's CLI is malfunctioning, unable to run server-side operations - User received errors related to database and collection - Relationship support in queries is uncertain - Solution: Modify query to select userPublic.* instead of specific attributes - Discussion about null value in code repository Solution: Downgrade
hamed
5 Sep, 2023, 17:08

I see, should we wait for the next release?

Shmuel
5 Sep, 2023, 17:25

Can you try please to select userPublic.* , instead of the 3 related attributes?

hamed
5 Sep, 2023, 17:57

Yes, same error

hamed
5 Sep, 2023, 18:14
TypeScript
2023-09-05 15:27:42 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2023-09-05 15:27:42 [Error] Line: 2166
2023-09-05 15:27:44 [Error] Timestamp: 2023-09-05T15:27:44+00:00
2023-09-05 15:27:44 [Error] Method: GET
2023-09-05 15:27:44 [Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
2023-09-05 15:27:44 [Error] Type: TypeError
2023-09-05 15:27:44 [Error] Message: Utopia\Database\Database::getDocument(): Argument #2 ($id) must be of type string, null given, called in /usr/src/code/app/controllers/api/databases.php on line 3032
2023-09-05 15:27:44 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2023-09-05 15:27:44 [Error] Line: 2166 ```
Drake
5 Sep, 2023, 19:10

Hmm I'm not sure if we support relationships in queries 🧐

hamed
5 Sep, 2023, 19:28

It was working effortlessly in the headache-less 1.3.8 😁

Drake
5 Sep, 2023, 20:46

something seems wrong with your collection...would you please share the output of the get collection api for your collection?

hamed
5 Sep, 2023, 21:12

If this is a server-side operation, I'm unable to run it as my CLI is currently malfunctioning.

Drake
5 Sep, 2023, 21:13

which version of the CLI? You can also get this by inspecting the network traffic on the Appwrite Console

hamed
5 Sep, 2023, 21:15

Cli 3.0,

hamed
5 Sep, 2023, 21:16

I'll check the second option

hamed
5 Sep, 2023, 21:18

What am I supposed to look for 😬

Drake
5 Sep, 2023, 21:19

you can downgrade to 2.0.2

Drake
5 Sep, 2023, 21:20

get collection api call which is /v1/databases/{databaseId}/collections/{collectionId}

hamed
5 Sep, 2023, 21:52

The 'init' function from version 2.0.2 generated one of those CLI error messages in the support post 🀐.

Perhaps I should wait for a new release

Drake
5 Sep, 2023, 21:52

which?

hamed
5 Sep, 2023, 21:53

Server Error

Drake
5 Sep, 2023, 21:55

what's the docker logs for the appwrite container say?

hamed
5 Sep, 2023, 21:56
TypeScript
2023-09-05 21:41:10 [Error] Method: POST
2023-09-05 21:41:10 [Error] URL: /v1/functions
2023-09-05 21:41:10 [Error] Type: Utopia\Database\Exception\Structure
2023-09-05 21:41:10 [Error] Message: Invalid document structure: Unknown attribute: "schedule"
2023-09-05 21:41:10 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2023-09-05 21:41:10 [Error] Line: 2619 ```
Drake
5 Sep, 2023, 23:16

oh yes. i thought you were having problems with init project

hamed
6 Sep, 2023, 00:17

I'm not satisfied with version 1.4x 😴

hamed
6 Sep, 2023, 00:17

[SOLVED] Query.select Behavior Change in Version 1.4.1

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