I am learning appwrite, Can you help me, Its possible to Query Group by and Sum or count
await databases!.listDocuments(
databaseId: "***************",
collectionId: "***************",
queries: [
Query.equal("uid", uid),
Query.Sum..
],
hi 👋
So, your question is if querying by group or sum or count is allowed in Appwrite?
Also, amazing to hear you learning about Appwrite - how are you finding it so far?
So, grouping by sum or count is not available at the moment - however this is a spot we plan on working on this year.
But a workaround could be writing your own function which stores in a database the sum and count (differently) and then they can run the query methods suitable for them. say for example, we want to check the elements who's count is 5 (means they repeat 5 times in database) - for this we would create a function that stores count and then we can use query.equal on their count parameter - if its 5, we get the return
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...