After the latest release, I noticed that two-deep relationships only expand correctly in the first document returned by listDocuments. • On the first document, all attributes are included (e.g. company and company.subscription). • On the second document and beyond, the two-deep relationships (company.subscription) only return the ID, not the full object.
This breaks consistency and makes it impossible to rely on expanded data for multiple documents.
Steps to Reproduce 1. Create a collection with a relationship (e.g. company → subscription). 2. Use listDocuments in Flutter SDK with a simple filter (e.g. Query.equal(...)). 3. Include a query like:
Query.select(['', 'company.', 'company.subscription.*'])
4. Observe the response:
• First document: company and company.subscription return full objects.
• Second document: company.subscription only returns the ID.
Expected Behavior
All documents in the response should expand two-deep relationships consistently, not just the first one.
Actual Behavior
Only the first document expands correctly. Subsequent documents return only IDs for the nested (two-deep) relationships.
Environment • Appwrite version: 15.0.0 • SDK: Flutter 3.7.2 • Method: listDocuments • Query: only Query.equal(...)
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).
your sdk is too old. It was meant for 1.6.x. We're on 1.8.x now
Recommended threads
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...