1.0.7 • Published 2 years ago

monguex v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
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',
 })

})()
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago