request<TData, TVars> method

  1. @override
Stream<OperationResponse<TData, TVars>> request<TData, TVars>(
  1. OperationRequest<TData, TVars> operationRequest, [
  2. NextTypedLink<TData, TVars>? forward
])
override

A function called when a request reaches this TypedLink

Implementation

@override
Stream<OperationResponse<TData, TVars>> request<TData, TVars>(
  OperationRequest<TData, TVars> operationRequest, [
  forward,
]) =>
    cache.watchQuery(operationRequest).map(
          (data) => OperationResponse(
            operationRequest: operationRequest,
            data: data,
            dataSource: DataSource.Cache,
          ),
        );