Back

Query one way relationship

  • 0
  • Databases
  • Flutter
  • REST API
  • Cloud
w0rsti
3 Jul, 2024, 06:02

Hey there, thanks trying to help me! 👋

I know that querying relationships is currently not possible but I wonder in which extend? I have a „Cars“ Database where each car potentially contains a lot of „CarReservations“. In order to keep the „Car“ response small, I deleted the two way relationship and made it one way (a Reservation knows about its Car but the Car does not know about its reservations).

Is it still possible to query all the CarReservations for a car with a query and the Cars ID?

Appreciate it!

TL;DR
Developers wondering about querying one-way relationships in a "Cars" database. They adjusted the relationship so reservations know about cars, but not vice versa. The developers want to know if it's still possible to query all CarReservations for a specific car using the car's ID.
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