@graphql-codegen/visitor-plugin-common
Advanced tools
Comparing version 5.1.1-alpha-20240509095602-b92a9409e9445aa7530128b029d11444ea4b0508 to 5.1.1-alpha-20240509105210-4ea1da44bcbd1282abf3a9b6578d6c267619b98b
@@ -850,3 +850,4 @@ "use strict"; | ||
const isUnion = (0, graphql_1.isUnionType)(baseType); | ||
if (!this.config.mappers[baseType.name] && !isUnion && !this._shouldMapType[baseType.name]) { | ||
const isInterface = (0, graphql_1.isInterfaceType)(baseType); | ||
if (!this.config.mappers[baseType.name] && !isUnion && !isInterface && !this._shouldMapType[baseType.name]) { | ||
return null; | ||
@@ -853,0 +854,0 @@ } |
@@ -846,3 +846,4 @@ import { ApolloFederation, getBaseType } from '@graphql-codegen/plugin-helpers'; | ||
const isUnion = isUnionType(baseType); | ||
if (!this.config.mappers[baseType.name] && !isUnion && !this._shouldMapType[baseType.name]) { | ||
const isInterface = isInterfaceType(baseType); | ||
if (!this.config.mappers[baseType.name] && !isUnion && !isInterface && !this._shouldMapType[baseType.name]) { | ||
return null; | ||
@@ -849,0 +850,0 @@ } |
{ | ||
"name": "@graphql-codegen/visitor-plugin-common", | ||
"version": "5.1.1-alpha-20240509095602-b92a9409e9445aa7530128b029d11444ea4b0508", | ||
"version": "5.1.1-alpha-20240509105210-4ea1da44bcbd1282abf3a9b6578d6c267619b98b", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" |
560027
10349