Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_graphql/graphql-tools/utils/mapAsyncIterator.ts>mapAsyncIterator

A simple graphql middleware for oak deno framework.
Latest
function mapAsyncIterator
import { mapAsyncIterator } from "https://deno.land/x/oak_graphql@0.6.4/graphql-tools/utils/mapAsyncIterator.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>