I have an existing table in which the primary key column is called gid
instead of id. When I use a massive document query like the one below I get Error: column "id" does not exist
. Can I specify that I have an id column named gid
?
I am using the following to query the database:
db.reports.findDoc({ gid: gid }, function (err, res) {
...
});