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

    Function create

    • Returns an RxJS operator to create a new resource identified by an Accessor or a Resource. It is equivalent to

      switchMap(x => of(undefined))
      

      if the stream value is null or undefined and to

      switchMap(x => x.create(obj))
      

      otherwise.

      Parameters

      • obj: any

        the value for the resource

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

      a function that transforms the source Observable