@coderich/autograph 0.13.8 → 0.13.9
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/src/schema/Schema.js +6 -1
package/package.json
CHANGED
package/src/schema/Schema.js
CHANGED
|
@@ -29,7 +29,7 @@ module.exports = class Schema {
|
|
|
29
29
|
this.#config.directives.field ??= 'field';
|
|
30
30
|
this.#config.directives.link ??= 'link';
|
|
31
31
|
this.#config.directives.index ??= 'index';
|
|
32
|
-
this.#typeDefs = Schema.#framework(this.#config.directives);
|
|
32
|
+
// this.#typeDefs = Schema.#framework(this.#config.directives);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -347,6 +347,11 @@ module.exports = class Schema {
|
|
|
347
347
|
return this.merge(Schema.#api(this.parse()));
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
framework() {
|
|
351
|
+
this.#typeDefs = Schema.#framework(this.#config.directives);
|
|
352
|
+
return this;
|
|
353
|
+
}
|
|
354
|
+
|
|
350
355
|
setup() {
|
|
351
356
|
return Emitter.emit('setup', this.#schema);
|
|
352
357
|
}
|