Angular HAL Client - v1.0.0-dev.7
    Preparing search index...

    Function update

    • Returns an RxJS operator to edit and update a Resource. It is equivalent to

      switchMap(resource => of(undefined))
      

      if resource is null or undefined and applying edit operation to the resource and doing

      switchMap(resource => resource.update())
      

      otherwise.

      Type Parameters

      Parameters

      • edit: (resource: Readonly<T>) => T

        the operation to edit the resource

      Returns OperatorFunction<T | null | undefined, Accessor | undefined>

      a function that transforms the source Observable