@keltoi/hydra 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -88,6 +88,10 @@ class Entity{
88
88
  static fromResult(result=new Result()){
89
89
  if(result.isError) return Promise.reject(result)
90
90
  }
91
+
92
+ static collectionfromResult(result=new Result()){
93
+ if(result.isError) return Promise.reject(result)
94
+ }
91
95
  }
92
96
 
93
97
  class Model {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keltoi/hydra",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Boilerplate to start your API from zero using Repository Pattern",
5
5
  "main": "index.js",
6
6
  "module": "index.js",