1.0.0 • Published 11 months ago
@onesy/models v1.0.0
Getting started
Add
yarn add @onesy/models Use
import express from 'express';
import { Query, Response } from '@onesy/models';
async function route(req: express.Request, res: express.Response) {
const query = Query.fromRequest(req);
const response = await todoCollection.searchMany(query);
return res.status(200).json(Response.fromQuery(response));
}
// etc.Dev
Install
yarnTest
yarn testProd
Build
yarn build1.0.0
11 months ago