npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

loopback-multi-emails-and-phones-mixin

1.1.5 • Public • Published

loopback-multi-emails-and-phones-mixin (WIP)

NPM version NPM downloads devDependency Status Build Status

MIT license Gitter Chat

Features

  • multiple emails
  • multiple phones

Installation

npm install loopback-multi-emails-and-phones-mixin --save

How to use

Add the mixins property to your server/model-config.json like the following:

{
  "_meta": {
    "sources": [
      "loopback/common/models",
      "loopback/server/models",
      "../common/models",
      "./models"
    ],
    "mixins": [
      "loopback/common/mixins",
      "../node_modules/loopback-multi-emails-and-phones-mixin",
      "../common/mixins"
    ]
  }
}
 

To use with your Models add the mixins attribute to the definition object of your model config.

{
  "name": "user",
  "base": "User",
  "properties": {
    "name": {
      "type": "string",
    }
  },
  "mixins": {
    "MultiEmailsAndPhones": true
  }
}

LIMITATIONS

TODO

  • Fix pending tests

License

MIT

install

npm i loopback-multi-emails-and-phones-mixin

Downloadsweekly downloads

81

version

1.1.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability