Skip to content

Commit bfa93ed

Browse files
sotaokuhamaAlan-Cha
authored andcommitted
add requestoptions to link resolvers
Signed-off-by: sotaokuhama <[email protected]>
1 parent df37903 commit bfa93ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function createOrReuseUnion({
281281
? ` (for operation '${operation.operationId}')`
282282
: '')
283283
)
284-
return def.graphQLType as (GraphQLUnionType)
284+
return def.graphQLType as GraphQLUnionType
285285
} else {
286286
translationLog(
287287
`Create union type '${def.graphQLTypeName}'` +
@@ -676,7 +676,8 @@ function createFields({
676676
[key: string]: string
677677
},
678678
data,
679-
baseUrl: data.options.baseUrl
679+
baseUrl: data.options.baseUrl,
680+
requestOptions: data.options.requestOptions
680681
})
681682

682683
// Get args for link

0 commit comments

Comments
 (0)