Browse Source

fix: include primary key by default in fields

Signed-off-by: Pranav C <pranavxc@gmail.com>
test/query-opt-imp
Pranav C 2 years ago
parent
commit
8bdd47a245
  1. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/helpers/getAst.ts

@ -123,7 +123,7 @@ const getAst = async ({
: fields?.length : fields?.length
? fields.includes(col.title) && value ? fields.includes(col.title) && value
: value; : value;
if (isRequested) await extractDependencies(col, dependencyFields); if (isRequested || col.pk) await extractDependencies(col, dependencyFields);
return { return {
...(await obj), ...(await obj),

Loading…
Cancel
Save