Skip to content

Commit

Permalink
lint(resolveFromParentTypename): use same name even for default import
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Oct 3, 2019
1 parent 48e13ac commit bd95234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stitching/typeFromAST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
GraphQLFieldConfig,
StringValueNode,
} from 'graphql';
import resolveFromParentType from './resolveFromParentTypename';
import resolveFromParentTypename from './resolveFromParentTypename';
import { createNamedStub } from '../utils/stub';

const backcompatOptions = { commentDescriptions: true };
Expand Down Expand Up @@ -85,7 +85,7 @@ function makeInterfaceType(
fields: () => makeFields(node.fields),
description: getDescription(node, backcompatOptions),
resolveType: (parent, context, info) =>
resolveFromParentType(parent, info.schema),
resolveFromParentTypename(parent, info.schema),
});
}

Expand Down Expand Up @@ -116,7 +116,7 @@ function makeUnionType(
),
description: getDescription(node, backcompatOptions),
resolveType: (parent, context, info) =>
resolveFromParentType(parent, info.schema),
resolveFromParentTypename(parent, info.schema),
});
}

Expand Down

0 comments on commit bd95234

Please sign in to comment.