Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createFragmentMatcher() {
if (global['APOLLO_FRAGMENT_TYPES']) {
return new IntrospectionFragmentMatcher({
introspectionQueryResultData: global['APOLLO_FRAGMENT_TYPES'],
});
}
return new HeuristicFragmentMatcher();
}
createFragmentMatcher() {
return !introspectionResult
? new HeuristicFragmentMatcher()
: new IntrospectionFragmentMatcher({
introspectionQueryResultData: introspectionResult,
});
}
createFragmentMatcher() {
return !introspectionResult
? new HeuristicFragmentMatcher()
: new IntrospectionFragmentMatcher({
introspectionQueryResultData: introspectionResult,
});
}
createFragmentMatcher() {
if (global['APOLLO_FRAGMENT_TYPES']) {
return new IntrospectionFragmentMatcher({
introspectionQueryResultData: global['APOLLO_FRAGMENT_TYPES'],
});
}
return new HeuristicFragmentMatcher();
}