Skip to content

brpereyra/super-mongoose

Repository files navigation

GitHub issues GitHub forks GitHub stars GitHub license

Super mongoose

It is a group of code fragments for common use in application development based primarily on node js and express with mongo db as a backend.

Code snippets that any mongoose and node developer needs

Do you want to collaborate with the project ?, Write us Here

Snippets List

Base Snippets

Snippet Action
sp-im import mongoose library
sp-cs Create basic Schema
sp-cm Create basic Model
sp-a[fieldType] Add field to schema

Find by id

Snippet Action
sp-fi Find by id await
sp-fic Find by id callback
sp-fip Find by id promise

Find One

Snippet Action
sp-fo Find one await
sp-foc Find one callback
sp-fop Find one promise

Find All

Snippet Action
sp-fa Find all await
sp-fac Find all callback
sp-fap Find all promise

fieldType

  • s -> String field
  • n -> Number field
  • b -> Boolean field
  • d -> Date field
  • e -> Enum field
  • a -> Array field

Release Notes

[0.0.2] - 2022-06-14

Added

  • Array Field

fixed

  • Table Description in the Readme file

[0.0.1] - Initial release

  • Initial release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published