@kiwano/core 0.0.2 → 0.0.7

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.
@@ -28,6 +28,12 @@ class CreateInputObjectTypeBuilder extends inputObjectType_1.InputObjectTypeBuil
28
28
  if (fieldInfo.nonNull) {
29
29
  inputField.nonNull();
30
30
  }
31
+ if (fieldInfo.list) {
32
+ inputField.list();
33
+ }
34
+ if (fieldInfo.nonNullList) {
35
+ inputField.nonNullList();
36
+ }
31
37
  this.field(inputField);
32
38
  }
33
39
  }
@@ -28,6 +28,12 @@ class UpdateInputObjectTypeBuilder extends inputObjectType_1.InputObjectTypeBuil
28
28
  if (util_1.isFieldId(fieldInfo)) {
29
29
  inputField.nonNull();
30
30
  }
31
+ if (fieldInfo.list) {
32
+ inputField.list();
33
+ }
34
+ if (fieldInfo.nonNullList) {
35
+ inputField.nonNullList();
36
+ }
31
37
  this.field(inputField);
32
38
  }
33
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiwano/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -28,18 +28,19 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/lodash": "^4.14.168",
31
+ "graphql": "^15.5.0",
31
32
  "rimraf": "^3.0.2",
32
33
  "ts-node": "9.1.1",
33
- "typescript": "^4.2.3",
34
- "graphql": "^15.5.0"
34
+ "typescript": "^4.2.3"
35
35
  },
36
36
  "dependencies": {
37
- "@graphql-tools/merge": "^6.2.11",
37
+ "@graphql-tools/schema": "^8.2.0",
38
38
  "graphql-middleware": "^6.0.5",
39
39
  "lodash": "^4.17.21",
40
40
  "pluralize": "^8.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "graphql": "^14.7.0 || ^15.3.0"
44
- }
43
+ "graphql": "^14.0.0 || ^15.0.0"
44
+ },
45
+ "gitHead": "8c06d628d7cfaddff14bbd8fc08fefb1d9be0118"
45
46
  }
package/schema.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schema = exports.SchemaBuilder = exports.AbstractSchemaBuilder = void 0;
4
4
  const lodash_1 = require("lodash");
5
- const merge_1 = require("@graphql-tools/merge");
5
+ const schema_1 = require("@graphql-tools/schema");
6
6
  const graphql_middleware_1 = require("graphql-middleware");
7
7
  const graphql_1 = require("graphql");
8
8
  const objectType_1 = require("./objectType");
@@ -319,7 +319,7 @@ class AbstractSchemaBuilder {
319
319
  const builtSchema = await subSchema.buildSchema(resolvedTypes, resolvedRootSchema);
320
320
  builtSubSchemas.push(builtSchema);
321
321
  }
322
- const mergedSchema = merge_1.mergeSchemas({
322
+ const mergedSchema = schema_1.mergeSchemas({
323
323
  schemas: [fullSchema, ...builtSubSchemas]
324
324
  });
325
325
  this._executePluginsSync('afterBuildSchema', plugin => plugin.afterBuildSchema(this, mergedSchema));