Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function createRemoteSchema(serviceName) {
const link = new HttpLink({uri: `http://${serviceName}`, fetch});
let schema;
try {
schema = await retry(() => introspectSchema(link), 5);
return makeRemoteExecutableSchema({schema, link});
} catch (err) {
return undefined;
}
}