Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Database

Paul Walger edited this page Oct 7, 2015 · 1 revision

We are using LoopBack for our backend server.

  • All the models are in /common/models.
  • Some LoopBack specific stuff is in /server.
  • The list of the exposed models is in /server/model-config.json.

Relations

Polymorphic

Belongs To

Example:

# note.json
"relations": {
    "notable": {
      "type": "belongsTo",
      "polymorphic": true
    }
}
# person.json
"relations": {
    "notes": {
      "type": "hasMany",
      "model": "Note",
      "polymorphic": "notable"
    },
}

Exposed API

Exposed API by Person Exposed API by Notes

API of lbServices

Clone this wiki locally