Skip to main content
Module

x/bq-oak-graphql/graphql-tools/utils/index.ts>mapAsyncIterator

A simple graphql middleware for oak deno framework.
Latest
function mapAsyncIterator
import { mapAsyncIterator } from "https://deno.land/x/bq-oak-graphql@v2.0/graphql-tools/utils/index.ts";

Given an AsyncIterable and a callback function, return an AsyncIterator which produces values mapped via calling the callback function.

Parameters

iterator: AsyncIterator<T>
callback: (value: T) => Promise<U> | U
optional
rejectCallback: any

Returns

AsyncIterator<U>