Closed cwgabel closed 7 years ago
Not from wiki, but from http://dresende.github.io/node-orm2/
Try key: true
as seen here: https://github.com/dresende/node-orm2#advanced-options
http://dresende.github.io/node-orm2/ does not have any mention of this usage:
personId : { type: 'serial', key: true },
which is where I thought documentation resides (given how nice it looks).
So the wiki is the ultimate destination of all node-orm2 documentation?
Yep. Hey @dresende can we remove those docs somehow? Or point them to the main readme?
Done, dropped gh-pages branch ;)
Advanced Options (from wiki)
Cannot get this to work (from example, with added modification):
Error message:
throw new ORMError("Model defined without any keys", 'BAD_MODEL', { model: opts.table });
This works just fine:
Thank you for any help you can provide.