@@ -8,7 +8,7 @@ import { typeCaseForSelectionSet } from './visitors/typeCase';
8
8
import { collectAndMergeFields } from './visitors/collectAndMergeFields' ;
9
9
10
10
import '../utilities/array' ;
11
- import Maybe from 'graphql/tsutils/Maybe ' ;
11
+ import { Maybe } from './ ' ;
12
12
13
13
export interface CompilerOptions {
14
14
addTypename ?: boolean ;
@@ -91,7 +91,7 @@ export interface Argument {
91
91
export function compileToLegacyIR (
92
92
schema : GraphQLSchema ,
93
93
document : DocumentNode ,
94
- options : CompilerOptions = { mergeInFieldsFromFragmentSpreads : true }
94
+ options : CompilerOptions = { mergeInFieldsFromFragmentSpreads : true } ,
95
95
) : LegacyCompilerContext {
96
96
const context = compileToIR ( schema , document , options ) ;
97
97
const transformer = new LegacyIRTransformer ( context , options ) ;
@@ -164,7 +164,7 @@ class LegacyIRTransformer {
164
164
return undefined ;
165
165
166
166
const fragmentSpreads : string [ ] = this . collectFragmentSpreads ( selectionSet , variant . possibleTypes ) . map (
167
- ( fragmentSpread : FragmentSpread ) => fragmentSpread . fragmentName
167
+ ( fragmentSpread : FragmentSpread ) => fragmentSpread . fragmentName ,
168
168
) ;
169
169
return variant . possibleTypes . map ( possibleType => {
170
170
return {
@@ -181,7 +181,7 @@ class LegacyIRTransformer {
181
181
}
182
182
183
183
const fragmentSpreads : string [ ] = this . collectFragmentSpreads ( selectionSet ) . map (
184
- ( fragmentSpread : FragmentSpread ) => fragmentSpread . fragmentName
184
+ ( fragmentSpread : FragmentSpread ) => fragmentSpread . fragmentName ,
185
185
) ;
186
186
187
187
return {
0 commit comments