loopback-datatype-objectid

1.5.0 • Public • Published

loopback-datatype-objectid

Setup

add require('loopback-datatype-objectid')(app) in server.js before boot is called

Using ObjectID type

In a LoopBack model, declare a ObjectID property in the model JSON file, for example:

...
"properties": {
    "id": {
      "type": "objectid",
      "id": true
    },
  ...
}
...

License: MIT

Readme

Keywords

none

Package Sidebar

Install

npm i loopback-datatype-objectid

Weekly Downloads

202

Version

1.5.0

License

MIT

Unpacked Size

3.59 kB

Total Files

4

Last publish

Collaborators

  • bolamn