Back

Query orderAsc with relationship document attribut

  • 0
  • Web
loup
31 Aug, 2023, 17:59

Yo I have a little question, is it possible to make a Query in order asc to a relationship document attribut value ? For exemple I have this :

  • movie_review_collection : - id
    • movieId
    • movieRated (relation document)
    • review_title
    • review_body
  • movieRated_collection - id
    • movieId
    • rating

How order my reviews depend of the rating value of each review ?

TL;DR
Is it possible to order queries in ascending order based on a relationship document attribute value? Currently, queries on related documents are not supported. However, it is planned to be added in the future.
Drake
3 Sep, 2023, 20:37

Queries on related documents aren't supported yet. We plan to add support in the future

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