Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
executeQuery = <data>(
query: GraphQLRequest,
opts?: Partial
): Source> => {
const operation = this.createRequestOperation('query', query, opts);
const response$ = this.executeRequestOperation(operation);
const { pollInterval } = operation.context;
if (pollInterval) {
return pipe(
merge([fromValue(0), interval(pollInterval)]),
switchMap(() => response$)
);
}
return response$;
};
</data>