core/asset/js/plugin/dist/gina.min.js
function collectionInsert(content) {

        // TODO - add uuid
        content['_id']         = uuid.v1();
        content['_createdAt']  = new Date().format("isoDateTime");
        content['_updatedAt']  = new Date().format("isoDateTime");

        collections[ this['_collection'] ][ collections[ this['_collection'] ].length ] = content;

        storage.setItem(this['_bucket'], JSON.stringify(collections));
    }
function collectionInsert(content) {

        // TODO - add uuid
        content['_id']         = uuid.v1();
        content['_createdAt']  = new Date().format("isoDateTime");
        content['_updatedAt']  = new Date().format("isoDateTime");

        collections[ this['_collection'] ][ collections[ this['_collection'] ].length ] = content;

        storage.setItem(this['_bucket'], JSON.stringify(collections));
    }
function collectionInsert ( content ) { // TODO - add uuid content [ '_id' ] = uuid . v1 ( ) ; content [ '_createdAt' ] = new Date ( ) . format ( "isoDateTime" ) ; content [ '_updatedAt' ] = new Date ( ) . format ( "isoDateTime" ) ; collections [ this [ '_collection' ] ] [ collections [ this [ '_collection' ] ] . length ] = content ; storage . setItem ( this [ '_bucket' ] , JSON . stringify ( collections ) ) ; }
Insert into collection

@param {object} content
Insert into collection