Hello community! Maybe my question is a bit dumb… but, I will try my luck here 🙂 in my database, I am having users as a collection, and I want users to have friends (who are also users), but in “relationship” i could’t choose its own collection. What should I do? Thank you!
self relationships are not a thing currently, off the top of my head I think having an array attribute of user ids would be fine, and then you would fetch those profiles when necessary.
Recommended threads
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.