import { GraphQLResolveInfo , ResponsePath , } from 'graphql' ; export interface QueryReducer < Acc , Ctx > { initial : Acc ; reduceField ( parentAcc , childAcc , ctx , info ) : Acc ; reduceScalar ( path , acc , ctx ) : Acc ; reduceEnum ( path , acc , ctx ) : Acc ; reduceCtx ( acc , ctx ) : Ctx ; }