Back

Perform dynamic fetch

  • 0
  • Databases
  • Flutter
LDs_Group
15 May, 2023, 21:47

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
15 May, 2023, 22:03

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.

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