A super simple piece of express middleware that patches requests with methods that make working with wetland a breeze.
npm i express-wetland --save
yarn add express-wetland
const expressWetland = require('express-wetland');
const wetland = new Wetland(yourConfig);
app.use(expressWetland(wetland));
Returns an entity manager scope that only applies to the request, and only lives as long as the request.
Returns the repository for given Entity
reference, or Entity's identity string.
This is the wetland instance you passed in to the middleware on config.
MIT