loopback-datatype-objectid

## Setup

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
loopback-datatype-objectid
701.1.02 years ago6 years agoMinified + gzip package size for loopback-datatype-objectid in KB

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