... | @@ -2,7 +2,7 @@ |
... | @@ -2,7 +2,7 @@ |
|
|
|
|
|
##Adapter.js
|
|
##Adapter.js
|
|
--
|
|
--
|
|
'''
|
|
```javascript
|
|
export default class Adapter {
|
|
export default class Adapter {
|
|
constructor() {
|
|
constructor() {
|
|
self.mongoose = require('mongoose')
|
|
self.mongoose = require('mongoose')
|
... | @@ -17,7 +17,7 @@ export default class Adapter { |
... | @@ -17,7 +17,7 @@ export default class Adapter { |
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
'''
|
|
```
|
|
##Entity.js
|
|
##Entity.js
|
|
--
|
|
--
|
|
import Joi from 'joi'
|
|
import Joi from 'joi'
|
... | | ... | |