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
- Other DateTime Columns Are Saved Incorre...
When opening a row’s details from the console and editing any field, the timestamps of other DateTime columns are being automatically changed and incorrectly sa...
- GOT 500 error when going to the appwrite...
I gott 500 internal error screen and my API is timeout. please help to take a look. Traceback (most recent call last): File "D:\conda\envs\wrista\Lib\site-pa...
- Returned columns when Query.select is us...
Hello, I am noticing that whatever i put in Query.select, the returned data will always contain the following fields ` "total": 1, "rows": [ { ...