@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.
- package/package.json +1 -1
- package/schema.js +2 -2
package/package.json
CHANGED
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]
|
|
218
|
+
if (typeResolvers && typeResolvers[fieldName]) {
|
|
219
|
+
resolver = typeResolvers[fieldName].bind(typeResolvers);
|
|
220
220
|
}
|
|
221
221
|
return resolver;
|
|
222
222
|
}
|