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: packages/openapi-to-graphql/src/preprocessor.ts
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -87,10 +87,10 @@ function processOperation<TSource, TContext, TArgs>(
87
87
if(data.options.equivalentToMessages){
88
88
// Description may not exist
89
89
if(typeofdescription!=='string'){
90
-
description=''
90
+
description=`Equivalent to ${operationString}`
91
+
}else{
92
+
description+=`\n\nEquivalent to ${operationString}`
91
93
}
92
-
93
-
description+=`\n\nEquivalent to ${operationString}`
94
94
}
95
95
96
96
// Tags
@@ -699,7 +699,13 @@ export function createDataDef<TSource, TContext, TArgs>(
699
699
// Found existing data definition and fetch it
700
700
constexistingDataDef=data.defs[index]
701
701
702
-
if(existingDataDef.targetGraphQLType===TargetGraphQLType.oneOfUnion&&Array.isArray(existingDataDef.subDefinitions)// Special handling for oneOf. Sub definitions are always an array (see createOneOfUnion)
702
+
/**
703
+
* Special handling for oneOf. Subdefinitions are always an array
0 commit comments