Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const r = await execute(
schema,
o.query,
rootValue,
contextValue,
o.variables,
o.operationName,
fieldResolver,
typeResolver
);
return makeResult(o, r);
} catch (err) {
return makeErrorResult(o, err);
}
}),
mergeMap(p => fromPromise(p))
);
const forwardedOps$ = pipe(
sharedOps$,
filter(o => !targetOperationTypes.includes(o.operationName)),
forward
);
return merge([executedOps$, forwardedOps$]);
};
};