Does Lokijs generate its own IDs?

I am trying to use lokijs in a project.

Does Lokijs create its own IDs? Or do we need to handle it ourselves?

+3


source to share


1 answer


LokiJS generates its own IDs. Since the "id" property is a generic name, to avoid collisions, the unique identifier of the object inserted into the collection is stored in the property $loki

. Other data generated by loki is an object meta

containing information about the creation of the object and the last update, as well as the revision number (the number of times the object was changed).



+4


source







All Articles