appwrite / appwrite/appwrite

Database operators support on relationship columns

Open
#12,354 2 comments 0 reactions 0 assignees View on GitHub
feature / relationships product / databases
Dominant language
TypeScript
Stars
57.4k
Forks
5.7k
Avg merge
16h 27m
Merged PRs (30d)
291

Description

### 🔖 Enhancement description

Database operators should allow me to update relationship columns.

### 🎤 Pitch

The Array operations look like a great fit for several use-cases on relationship columns.
They could be used to add / edit / remove relationships using the id of the related field.
Here is an example of how it could be used:
```
await databases.updateRow(
databaseId: AppwriteConstants.databaseID,
tableId: AppwriteConstants.tableID,
rowId: id,
data: {
"related": Operator.arrayAppend([related_id])
}
);
```

### 👀 Have you spent some time to check if this issue has been raised before?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.