loopback-datatype-objectid
v1.5.0
Published
## Setup
Downloads
605
Readme
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