@kiwano/core 0.1.1 → 0.1.2

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/package.json +1 -1
  2. package/schema.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiwano/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
package/schema.js CHANGED
@@ -215,8 +215,8 @@ class AbstractSchemaBuilder {
215
215
  const resolvers = this.compiledResolvers;
216
216
  let resolver = null;
217
217
  const typeResolvers = resolvers[typeName];
218
- if (typeResolvers) {
219
- resolver = typeResolvers[fieldName] || null;
218
+ if (typeResolvers && typeResolvers[fieldName]) {
219
+ resolver = typeResolvers[fieldName].bind(typeResolvers);
220
220
  }
221
221
  return resolver;
222
222
  }