Skip to content

Instantly share code, notes, and snippets.

View assafweinberg's full-sized avatar

Assaf Weinberg assafweinberg

View GitHub Profile
@assafweinberg
assafweinberg / RelationalWrapper.js
Last active June 26, 2019 11:44
SQL Join with LokiJS
import loki from 'lokijs';
import _ from 'lodash';
class relationalWrapper {
constructor(dbName) {
this.db = new loki('dbName');
}
//Utility to strip loki meta data
_stripMetaData(obj) {