monguex
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

monguex

Biblioteca monguex utilitário das funções do mongoose
NPM - https://www.npmjs.com/package/monguex

Instalação

Para instalar a biblioteca, utilize o seguinte comando:

npm install monguex

ou

yarn  add monguex

Uso

Exemplos de como utilizar a biblioteca:

import  {monguex}  from 'monguex';



(async()=>{
  await monguex.connect("URL_MONGOOSE")

const userProps = {
  nome: String,
  idade: Number,
  email: String
};

const UserModel = monguex.createSchema('User',userProps,{timestamps:true})


await monguex.save(UserModel,{
    nome: 'John Doex',
    idade: 25,
    email: 'john.doex@example.com',
 })

})()

Package Sidebar

Install

npm i monguex

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

206 kB

Total Files

57

Last publish

Collaborators

  • alexpxmort