We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b6eaa8 commit b927527Copy full SHA for b927527
README.md
@@ -91,6 +91,32 @@ type: `boolean` default: `false`
91
92
Generates validation string schema as do not allow empty characters by default.
93
94
+### `scalarSchemas`
95
+
96
+type: `ScalarSchemas`
97
98
+Extends or overrides validation schema for the built-in scalars and custom GraphQL scalars.
99
100
+#### yup schema
101
102
+```yml
103
+config:
104
+ schema: yup
105
+ scalarSchemas:
106
+ Date: yup.date()
107
+ Email: yup.string().email()
108
+```
109
110
+#### zod schema
111
112
113
114
+ schema: zod
115
116
+ Date: z.date()
117
+ Email: z.string().email()
118
119
120
### `directives`
121
122
type: `DirectiveConfig`
0 commit comments