Fetch relationships on external row find

This commit is contained in:
Adria Navarro 2023-09-12 18:07:20 +02:00
parent 66524d998b
commit 88c68cfe58
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ export async function save(ctx: UserCtx) {
export async function find(ctx: UserCtx): Promise<Row> {
const id = ctx.params.rowId
const tableId = utils.getTableId(ctx)
const row = await sdk.rows.external.getRow(tableId, id)
const row = await sdk.rows.external.getRow(tableId, id, {
relationships: true,
})
if (!row) {
ctx.throw(404)