Skip to content

Commit a1dbabe

Browse files
nlundquiststeverice
authored andcommitted
pick nullable off correct schema
Signed-off-by: Nils Lundquist <[email protected]>
1 parent a18045b commit a1dbabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ function createFields<TSource, TContext, TArgs extends object>({
664664
fetch
665665
})
666666

667-
const nullableProperty = def.schema.nullable
667+
const nullableProperty = fieldTypeDefinition.schema.nullable
668668

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

0 commit comments

Comments
 (0)