Skip to content

Commit 24dddd8

Browse files
committed
pick nullable off correct schema
Signed-off-by: Nils Lundquist <[email protected]>
1 parent ec74f2f commit 24dddd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-to-graphql/src/schema_builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ function createFields<TSource, TContext, TArgs>({
619619
isInputObjectType
620620
})
621621

622-
const nullableProperty = def.schema.nullable
622+
const nullableProperty = fieldTypeDefinition.schema.nullable
623623

624624
// Finally, add the object type to the fields (using sanitized field name)
625625
if (objectType) {

0 commit comments

Comments
 (0)