Type alias SGFieldResolve<S, R>

SGFieldResolve<S, R>: ((source: S, args: {
    [key: string]: any;
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => Promise<R>)

Type Parameters

  • S = any

  • R = any

Type declaration

    • (source: S, args: {
          [key: string]: any;
      }, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext): Promise<R>
    • Parameters

      • source: S
      • args: {
            [key: string]: any;
        }
        • [key: string]: any
      • context: SGResolveContext
      • info: GraphQLResolveInfo
      • sgContext: SGContext

      Returns Promise<R>

Generated using TypeDoc