Back

Aggregation in AppWrite

  • 1
  • Databases
  • General
  • Web
Arafat
20 Feb, 2023, 19:15

Can someone show me how to do aggregation with app write. I am using mongodb and I want to know If It possible to use aggregation in app write.

TL;DR
The user is asking if it is possible to perform aggregation in AppWrite. The response states that currently, AppWrite does not have an aggregation pipeline like MongoDB. However, the team is working on improving the Databases service by adding support for relationships and operations like count, sum, average, etc. No solution for aggregation in AppWrite is provided.
Drake
20 Feb, 2023, 19:18

Appwrite doesn't have an aggregation pipeline like MongoDB. This is how you query for documents: https://appwrite.io/docs/databases#querying-documents

That said, we are currently looking into improving the Databases service by adding support for relationships and operations like count, sum, average, etc.

Arafat
20 Feb, 2023, 19:22

If I have to generate a chart from multiple collection, how will I do it? It doesn't seem to be possoble by looking at the query methods that app write provides.

Drake
20 Feb, 2023, 19:26

You would either have to:

  1. fetch the necessary data and process it client side
  2. maintain helper/metadata collections with some of the data already
Brave
23 Feb, 2023, 18:09

Relationships would be awesome 🥵😍

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more