[SOLVED] Is it possible to stitch GQL queries for Account or Team objects?
- 0
- Resolved
- Databases
- Tools
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
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...