UNPKG

@omnigraph/odata

Version:
11 lines (10 loc) 569 B
import type { GraphQLFieldResolver } from 'graphql'; import type { DataloaderFactory } from '../getDataloaderFactory.js'; export interface UnboundFunctionResolverOpts { endpoint: string; functionName: string; expandNavProps: boolean; dataloaderFactory: DataloaderFactory; headersFactory: (resolverData: any, method: string) => Record<string, string>; } export declare function createUnboundFunctionResolver({ endpoint, functionName, expandNavProps, dataloaderFactory, headersFactory, }: UnboundFunctionResolverOpts): GraphQLFieldResolver<any, any>;