Skip to main content
Module

x/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/oak_graphql@0.6.4/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>