@coderich/autograph 0.13.4 → 0.13.5
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 +5 -0
package/package.json
CHANGED
package/src/schema/Schema.js
CHANGED
|
@@ -169,6 +169,10 @@ module.exports = class Schema {
|
|
|
169
169
|
field.isConnection = value;
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
172
|
+
case 'field-validate': { // Alias for finalize
|
|
173
|
+
target.pipelines.finalize = target.pipelines.finalize.concat(value).filter(Boolean);
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
172
176
|
case 'link-by': {
|
|
173
177
|
field.linkBy = value;
|
|
174
178
|
field.isVirtual = true;
|
|
@@ -375,6 +379,7 @@ module.exports = class Schema {
|
|
|
375
379
|
restruct: [AutoGraphPipelineEnum!]
|
|
376
380
|
serialize: [AutoGraphPipelineEnum!]
|
|
377
381
|
finalize: [AutoGraphPipelineEnum!]
|
|
382
|
+
validate: [AutoGraphPipelineEnum!] # Alias for finalize
|
|
378
383
|
) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION | SCALAR
|
|
379
384
|
|
|
380
385
|
directive @link(
|