Hi there, I have a table containing a relation column with a one-to-many relationship to another table. When Using TablesDB.GetRow in "node-appwrite" i get all the normal rows but not the relations. Does anyone have an idea?
By default, Appwrite returns only a row's own fields when you retrieve rows. Related rows are not automatically loaded
Use the * wildcard to load all fields from related rows:
const doc = await tablesDB.getRow({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
queries: [Query.select(['*', 'reviews.*'])]
});
https://appwrite.io/docs/products/databases/relationships#performance-loading
I'll try it. Thanks in advance π
It worked.... Thanks a lot
[SOLVED] Get Relations when using TablesDB
Recommended threads
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, itβs mention that only setup client with endpoint / api key is enou...