Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -101,3 +101,3 @@ const { makeExecutableSchema } = require('graphql-tools') | ||
for (const typeKey of Object.keys(types)) { | ||
log(typeKey) | ||
log({typeKey}) | ||
const type = types[typeKey] | ||
@@ -108,2 +108,3 @@ this.typeSchema += `type ${typeKey} { | ||
for (const fieldKey of Object.keys(type)) { | ||
log({fieldKey}) | ||
const field = type[fieldKey] | ||
@@ -140,4 +141,6 @@ // if it's a string, just define it and continue, no resolver needed | ||
) { | ||
log({resolver: field.resolver}) | ||
this.resolvers[typeKey] = this.resolvers[typeKey] || {} | ||
this.resolvers[typeKey][fieldKey] = field.resolver | ||
log(this.resolvers[typeKey][fieldKey]) | ||
} | ||
@@ -144,0 +147,0 @@ // finish off the line with the defined type |
{ | ||
"name": "aeros", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Low-friction GraphQL schemas", | ||
@@ -5,0 +5,0 @@ "main": "aeros.js", |
46076
198