Tag: loopback 4

  • LoopBack 4: Add created and modified properties

    LoopBack 4: Add created and modified properties

    In LoopBack 4 currently there is no feature to auto update created and modified properties like LoopBack 3. But we can do this in Loopback 4 with following way. You have to create “created” and “modified” properties key in your model file with default value function which is current timestamp. And for update “modified” key…