Adds comprehensive audit trail functionality to Loopback by keeping track of who created/modified/deleted data and when they did it, and adds a revisions model compatible with Sofa/Revisionable for PHP (https://github.com/jarektkaczyk/revisionable)
The "not-deleted" filter queryNonDeleted = {[options.deletedAt]: null} is translated into { deleted_at: { '$type': 10 } }. This query won't find any record. What we'd need is more like deleted_at: {$exists: false}. Unfortunately I don't know whether there is an expression which gets translated to this and hopefully stills works with other databases.
Maybe using "deletedBy" would be easier than using a date?
The "not-deleted" filter
queryNonDeleted = {[options.deletedAt]: null}
is translated into{ deleted_at: { '$type': 10 } }
. This query won't find any record. What we'd need is more likedeleted_at: {$exists: false}
. Unfortunately I don't know whether there is an expression which gets translated to this and hopefully stills works with other databases.Maybe using "deletedBy" would be easier than using a date?
From server log: