Skip to content

Commit 23fea38

Browse files
committed
fixed README
1 parent 5506b6e commit 23fea38

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,6 @@ type: `ScalarSchemas`
152152

153153
Extends or overrides validation schema for the built-in scalars and custom GraphQL scalars.
154154

155-
### `withObjectType`
156-
157-
type: `boolean` default: `false`
158-
159-
Generates validation schema with GraphQL type objects. But excludes `Query`, `Mutation`, `Subscription` objects.
160-
161155
#### yup schema
162156

163157
```yml
@@ -178,6 +172,16 @@ config:
178172
Email: z.string().email()
179173
```
180174

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!
184+
181185
### `directives`
182186

183187
type: `DirectiveConfig`

0 commit comments

Comments
 (0)