LDs_Group
I'm little bit confused <:flutter:714892041401925684>
Flutter My collections look like:
TypeScript
- dbA:
- id
- title
- content
- dbB:
- id
- dbA_id
- body
I to get fetch dbB to return selected data that json look like:
TypeScript
[
{
'id': ...,
'body': ...,
'relativeDbA': {
'id': ...,
'title': ...
}
},
{
...
},
...
]
TL;DR
The user is confused about how to fetch data from a collection called "dbB" in Flutter. They want to retrieve selected data from "dbB" and have it return JSON with some data from a related collection "dbA".
Solution: The user should utilize the relationships feature in Appwrite 1.3. They can refer to the documentation at <https://appwrite.io/docs/databases-relationships> for more information on how to implement this feature. Drake
Starting with Appwrite 1.3, we added support for relationships which let's you do something like this. Please see https://appwrite.io/docs/databases-relationships for more info.