Rank 3: Container
How do u make multiple request inside one graphql request with Appwrite and NextJS, there is my code :
const q = (await graphql.query([
{
query: `query {
databasesListDocuments(
databaseId: "${String(process.env.NEXT_PUBLIC_APPWRITE_DATABASE_USERS)}",
collectionId: "${String(process.env.NEXT_PUBLIC_APPWRITE_COLLECTION_MOVIE_LIKED)}",
queries: ["equal('userId', ${userId})", "equal('movieId', ${movieId})"]
) {
total
documents {
_id
_collectionId
_databaseId
_createdAt
_updatedAt
_permissions
data
}
}
}`
}
]))
Here I only take the likes from a specific user and specific movie. Now I also want to get the "asSeen" state from another collection, how can I do ?