#How to do the equivalent of a JOIN query in Appwrite?
15 messages · Page 1 of 1 (latest)
There is no join in appwrite right now, you could do something like listDocuments where foreign_key = id to see if it exists already?
Oh, thank you. I didn't know foreign keys were a thing in Appwrite haha
They’re not, you’d kinda just make your own using string attributes to store the id of the related record
oh, damn alright
thank you
just a side question, how do relationships come into effect in this scenario?
They don’t, they’re in beta and do not support queries and are pretty inefficient. You can try and use them but be aware they will slow things down a lot
damn, thank you. I won't use them then
What are the Github issues or projects you guys are using to track the JOIN progress? That's such a core and essential feature.
@elder topaz
I think this is all I wanted: https://appwrite.io/docs/products/databases/relationships
You can't apparently join on the fly, but you can prepare those joins beforehand.
Just know this is in beta and extremely inefficient. You’ll end up having performance issues quick.