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
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...