1.5.0 • Published 5 months ago
loopback-datatype-objectid v1.5.0
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