From 63f807a8eb26de44c11285a4c9300a1c69943501 Mon Sep 17 00:00:00 2001 From: Michael Qin <1mike12@gmail.com> Date: Thu, 6 Jul 2023 04:06:24 -0500 Subject: [PATCH] Update static-properties.md (#2340) update docs for `idColumn` to let others know how to disable default primary key assumption --- doc/api/model/static-properties.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/model/static-properties.md b/doc/api/model/static-properties.md index 3798dfce6..025f8c84e 100644 --- a/doc/api/model/static-properties.md +++ b/doc/api/model/static-properties.md @@ -118,6 +118,8 @@ Composite id can be specified by giving an array of column names. Defaults to 'id'. +You can return `null` in order to tell objection there is no primary key. This may be useful in models of join tables. + ## `static` jsonSchema ```js