@the_pixelport/aws-lambda-graphql
Version:
Apollo server for AWS Lambda with WebSocket subscriptions support over API Gateway v1 + v2
7 lines • 426 B
TypeScript
import { GraphQLResolveInfo } from 'graphql';
import { IContext, SubcribeResolveFn } from './types';
export type FilterFn = (rootValue?: any, args?: any, context?: IContext, info?: GraphQLResolveInfo) => boolean | Promise<boolean>;
declare function withFilter(asyncIteratorFn: SubcribeResolveFn, filterFn: FilterFn): SubcribeResolveFn;
export { withFilter };
export default withFilter;
//# sourceMappingURL=withFilter.d.ts.map