Update docs and blogs to TablesDB terminology#3037
Conversation
Appwrite WebsiteProject ID: Tip Build commands execute in runtime containers during deployment |
adityaoberai
left a comment
There was a problem hiding this comment.
Please check for patterns of these issues across other blogs
Also, for every blog edited, we need to update the lastUpdated field in the frontmatter
| - question: "How does the Meilisearch sync function stay in sync with new documents?" | ||
| answer: "By default the template syncs documents on demand when the function runs. To keep the index up to date automatically, configure the function to trigger on database events (document.create, document.update, document.delete) so every change is mirrored to Meilisearch in near real time." | ||
| - question: "How does the Meilisearch sync function stay in sync with new rows?" | ||
| answer: "By default the template syncs rows on demand when the function runs. To keep the index up to date automatically, configure the function to trigger on database row events so every change is mirrored to Meilisearch in near real time." |
There was a problem hiding this comment.
We will need to update the function template as well for this to work properly
Also, let's not remove the events from there, we should mention the correct ones instead
| For more information about Appwrite and Appwrite Functions: | ||
|
|
||
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: These documents provide more information on how to use Appwrite Functions. | ||
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: Learn more about how to use Appwrite Functions. |
There was a problem hiding this comment.
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: Learn more about how to use Appwrite Functions. | |
| 1. **[Appwrite Function Docs](/docs/products/functions)**: Learn more about how to use Appwrite Functions. |
| For more information about Appwrite and Appwrite Functions: | ||
|
|
||
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: These documents provide more information on how to use Appwrite Functions. | ||
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: Learn more about how to use Appwrite Functions. |
There was a problem hiding this comment.
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: Learn more about how to use Appwrite Functions. | |
| 1. **[Appwrite Function Docs](/docs/products/functions)**: Learn more about how to use Appwrite Functions. |
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: These documents provide more information on how to use Appwrite Functions. | ||
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: Learn more about how to use Appwrite Functions. | ||
| 2. **[Functions Announcement](https://dev.to/appwrite/serverless-your-way-unleashing-appwrite-functions-true-potential-2l4f)**: Read the full announcement on Functions 1.4. | ||
| 3. **[Appwrite Discord](https://discord.com/invite/appwrite)**: Connect with other developers and the Appwrite team for discussion, questions, and collaboration. |
There was a problem hiding this comment.
| 3. **[Appwrite Discord](https://discord.com/invite/appwrite)**: Connect with other developers and the Appwrite team for discussion, questions, and collaboration. | |
| 3. **[Appwrite Discord](/discord)**: Connect with other developers and the Appwrite team for discussion, questions, and collaboration. |
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: These documents provide more information on how to use Appwrite Functions. | ||
| 1. **[Appwrite Function Docs](https://appwrite.io/docs/functions)**: Learn more about how to use Appwrite Functions. | ||
| 2. **[Functions Announcement](https://dev.to/appwrite/serverless-your-way-unleashing-appwrite-functions-true-potential-2l4f)**: Read the full announcement on Functions 1.4. | ||
| 3. **[Appwrite Discord](https://discord.com/invite/appwrite)**: Connect with other developers and the Appwrite team for discussion, questions, and collaboration. |
There was a problem hiding this comment.
| 3. **[Appwrite Discord](https://discord.com/invite/appwrite)**: Connect with other developers and the Appwrite team for discussion, questions, and collaboration. | |
| 3. **[Appwrite Discord](/discord)**: Connect with other developers and the Appwrite team for discussion, questions, and collaboration. |
| name: 'articles', | ||
| columns: [ | ||
| { | ||
| key: 'title', | ||
| type: 'varchar', | ||
| size: 255, | ||
| required: true | ||
| }, | ||
| { | ||
| key: 'summary', | ||
| type: 'text', | ||
| required: false | ||
| }, | ||
| { | ||
| key: 'body', | ||
| type: 'mediumtext', | ||
| required: false | ||
| }, | ||
| { | ||
| key: 'raw_data', | ||
| type: 'longtext', | ||
| required: false | ||
| } | ||
| ] |
There was a problem hiding this comment.
This does not need a change, does it?
| Here’s what’s changed: | ||
|
|
||
| - Collections are now Tables | ||
| - Documents are now Rows | ||
| - Attributes are now Columns | ||
| The updated wording now centers Appwrite Databases around tables, rows, and columns. | ||
|
|
||
| To support the terminology change, we’ve added the TablesDB API. | ||
|
|
||
| A new API layer that helps you work with relational database concepts like tables, columns, and rows, without requiring any changes to your existing apps. | ||
|
|
||
| The old document-based methods are now deprecated and will no longer receive major upgrades. They will continue to receive security patches and essential maintenance, and we are ensuring backwards compatibility with those methods for the API, so there’s no need to migrate immediately if a specific issue arises. |
There was a problem hiding this comment.
Changes are unnecessary imho
| const promise = teams.create( | ||
| 'teachers', | ||
| 'Teachers', | ||
| ['maths', 'sciences', 'arts', 'literature'] | ||
| { | ||
| teamId: 'teachers', | ||
| name: 'Teachers', | ||
| roles: ['maths', 'sciences', 'arts', 'literature'] | ||
| } |
| await teams.deleteMembership({ | ||
| teamId: '<TEAM_ID>', | ||
| membershipId: '<MEMBERSHIP_ID>' | ||
| }); |
There was a problem hiding this comment.
These changes should not have been made in this PR, they add lots of extra bloat to review
Any changes to switch to object params should have been in a separate PR
|
|
||
| - **Gradual migration.** You don't have to swap everything at once. Authentication can move first, then storage, then databases. Each service you migrate reduces your maintenance burden. | ||
| - **Data export and import.** Appwrite's databases are standard JSON/document stores. Exporting your existing data and importing it is straightforward for most data models. | ||
| - **Data export and import.** Appwrite's databases store standard JSON row data. Exporting your existing data and importing it is straightforward for most data models. |
There was a problem hiding this comment.
not the right phrasing, we should just say they accept JSON inputs that are mapped to the table schema

Summary
Testing
bun run checkand diff whitespace validation