Browse Source

feat: Getting Primary key and Primary column as default value

Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
pull/341/head
Pranav C Balan 4 years ago committed by Pranav C
parent
commit
91286f4f30
  1. 2
      packages/nocodb/src/lib/noco/rest/RestCtrlBelongsTo.ts

2
packages/nocodb/src/lib/noco/rest/RestCtrlBelongsTo.ts

@ -51,7 +51,7 @@ export class RestCtrlBelongsTo extends RestBaseCtrl {
public async list(req: Request | any, res): Promise<void> { public async list(req: Request | any, res): Promise<void> {
const data = await req.childModel.belongsTo({ const data = await req.childModel.belongsTo({
parents: req.parentModel.tn, parents: req.parentModel.tn,
...req.queryF ...req.query
} as any); } as any);
res.xcJson(data); res.xcJson(data);
} }

Loading…
Cancel
Save