@orion-js/graphql 3.2.4 → 3.2.5

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.
@@ -15,4 +15,4 @@ export declare function getServiceModelResolvers(target: any): {
15
15
  [key: string]: ModelResolver<GlobalResolverResolve>;
16
16
  };
17
17
  export declare function Resolvers(): ClassDecorator;
18
- export declare function Model(typedModel: any): ClassDecorator;
18
+ export declare function Model(typedSchema: any): ClassDecorator;
@@ -71,10 +71,10 @@ function Resolvers() {
71
71
  };
72
72
  }
73
73
  exports.Resolvers = Resolvers;
74
- function Model(typedModel) {
74
+ function Model(typedSchema) {
75
75
  return function (target) {
76
76
  (0, services_1.Service)()(target);
77
- target.prototype.typedModel = typedModel;
77
+ target.prototype.typedSchema = typedSchema;
78
78
  target.prototype.service = target;
79
79
  // @ts-expect-error this is a trick to make it work in resolvers without having to call getModelForClass
80
80
  target.getModel = () => getModelForClass(target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-js/graphql",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "main": "lib/index.js",
5
5
  "author": "nicolaslopezj",
6
6
  "license": "MIT",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "a1c4cff581b31f24896ec96a0a180d043dbf802a"
48
+ "gitHead": "9bc5afdfb013bd197709cddec5f17e1da49fdc94"
49
49
  }