diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts index da3336a0f3..a0b4d1c92e 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts @@ -123,7 +123,7 @@ const getAst = async ({ : fields?.length ? fields.includes(col.title) && value : value; - if (isRequested) await extractDependencies(col, dependencyFields); + if (isRequested || col.pk) await extractDependencies(col, dependencyFields); return { ...(await obj),