interface AppSyncResolverEvent<TArguments, TSource> {
    arguments: TArguments;
    identity?: AppSyncIdentity;
    info: {
        fieldName: string;
        parentTypeName: string;
        selectionSetGraphQL: string;
        selectionSetList: string[];
        variables: {
            [key: string]: any;
        };
    };
    prev: null | {
        result: {
            [key: string]: any;
        };
    };
    request: {
        domainName: null | string;
        headers: AppSyncResolverEventHeaders;
    };
    source: TSource;
    stash: {
        [key: string]: any;
    };
}

Type Parameters

  • TArguments

    type of the arguments

  • TSource = Record<string, any> | null

    type of the source

Properties

arguments: TArguments
identity?: AppSyncIdentity
info: {
    fieldName: string;
    parentTypeName: string;
    selectionSetGraphQL: string;
    selectionSetList: string[];
    variables: {
        [key: string]: any;
    };
}

Type declaration

  • fieldName: string
  • parentTypeName: string
  • selectionSetGraphQL: string
  • selectionSetList: string[]
  • variables: {
        [key: string]: any;
    }
    • [key: string]: any
prev: null | {
    result: {
        [key: string]: any;
    };
}

Type declaration

  • result: {
        [key: string]: any;
    }
    • [key: string]: any
request: {
    domainName: null | string;
    headers: AppSyncResolverEventHeaders;
}

Type declaration

source: TSource
stash: {
    [key: string]: any;
}

Type declaration

  • [key: string]: any