From 9fe64d412cc7ea792f6575ab5a9db79ce8b67124 Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Sun, 22 Mar 2020 20:57:02 -0400 Subject: [PATCH] mark idColumnName as a deprecated function --- lib/datasource.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/datasource.js b/lib/datasource.js index 1d2fc20a..64ec82ba 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -2097,7 +2097,13 @@ DataSource.prototype.columnNames = function(modelName) { }; /** - * Find the ID column name + * @deprecated + * Function to get the id column name of the target model + * + * For SQL connectors, use `SqlConnector.prototype.column(ModelDefinition.prototype.idName())`. + * For NoSQL connectors, use `Connector.prototype.idMapping(ModelDefinition.prototype.idName())` + * instead. + * * @param {String} modelName The model name * @returns {String} columnName for ID */