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
Snippet | Action |
---|---|
sp-im | import mongoose library |
sp-cs | Create basic Schema |
sp-cm | Create basic Model |
sp-a[fieldType] | Add field to schema |
Snippet | Action |
---|---|
sp-fi | Find by id await |
sp-fic | Find by id callback |
sp-fip | Find by id promise |
Snippet | Action |
---|---|
sp-fo | Find one await |
sp-foc | Find one callback |
sp-fop | Find one promise |
Snippet | Action |
---|---|
sp-fa | Find all await |
sp-fac | Find all callback |
sp-fap | Find all promise |
- s -> String field
- n -> Number field
- b -> Boolean field
- d -> Date field
- e -> Enum field
- a -> Array field
- Array Field
- Table Description in the Readme file
- Initial release