You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -152,12 +152,6 @@ type: `ScalarSchemas`
152
152
153
153
Extends or overrides validation schema for the built-in scalars and custom GraphQL scalars.
154
154
155
-
### `withObjectType`
156
-
157
-
type: `boolean`default: `false`
158
-
159
-
Generates validation schema with GraphQL type objects. But excludes `Query`, `Mutation`, `Subscription` objects.
160
-
161
155
#### yup schema
162
156
163
157
```yml
@@ -178,6 +172,16 @@ config:
178
172
Email: z.string().email()
179
173
```
180
174
175
+
### `withObjectType`
176
+
177
+
type: `boolean`default: `false`
178
+
179
+
Generates validation schema with GraphQL type objects. But excludes `Query`, `Mutation`, `Subscription` objects.
180
+
181
+
It is currently added for the purpose of using simple objects. See also [#20](https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/issues/20#issuecomment-1058969191), [#107](https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/issues/107).
182
+
183
+
This option currently **does not support fragment** generation. If you are interested, send me PR would be greatly appreciated!
0 commit comments