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
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...