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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...