Skip to content

Instantly share code, notes, and snippets.

/*
Install this hook in app.hooks.js
module.exports = app => {
app.hooks({
before: {
all: [
addParamsForward()
]
}
@bwgjoseph
bwgjoseph / schema-example.ts
Created April 13, 2020 15:57
schema example for o service
```js
// o-group service
// each of this group represent a single row in db (e.g group)
// template or phase type can all store together using type to differentiate
const group = {
_id: '12345',
name: 'template 1',
type: 'TEMPLATE',
status: 'ACTIVE' // not sure what to call this field, cause type is used for above purpose so just use status for now