Im trying to query some data that belongs to each team. So essentially the query is on the team.$id
Instead of manually providing all the IDs in two separate requests I want to stitch them all together.
query GetTeamsAndRelatedDocuments {
teamsList {
total
teams {
_id
name
teamDocuments: databasesListDocuments(
databaseId: "<databaseId>",
collectionId: _id
) {
total
documents {
_id
_collectionId
_databaseId
}
}
}
}
}
Is this possible in Appwrite's implementation?
Cannot query field \"databasesListDocuments\" on type \"Team\". Im guessing the resolvers don't exist
Although you can't nest requests, you can get the list of teams and then issue multiple databasesListDocuments using 1 graphql request
Thanks. I'll just do that then. It would be nice to able and nest these queries but idk how complex that is from the Appwrite side.
[SOLVED] Is it possible to stitch GQL queries for Account or Team objects?
Recommended threads
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...
- Query multi-tenant db with $permissions ...
I'm setting up a multi-tenant database with RLS enabled. My users my have permissions set for multiple Teams, and as such when they query the database with the ...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...