1.0.8 • Published 6 months ago

@ewb/mongoose-query-express v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Mongoose Query Express

Info

Library to for Express to create simple reusable queries and logic for mongoose.\ Never write the simple get, post, patch and delete function over and over again.\

Used in combination with mongoose-query to create the model logic.\

Usage

import { QueryExpress, QueryModel, QueryOptions } from 'mongoose-query-express';

const options = new QueryOptions({ .... });
const userQueryModel = new QueryModel<User>(User, options);
const userQuery = new QueryExpress('user', userQueryModel, {...});

const user = express();

user.param('id', userQuery.param);
user.get('/', userQuery.get);
user.post('/', userQuery.post);
user.patch('/:id', userQuery.patch);
user.delete('/:id', userQuery.delete); // Can also use userQuery.archive if archive option set.
1.0.8

6 months ago

1.0.7

8 months ago

1.0.6

10 months ago

0.1.3

6 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.1.2

11 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago