{"size": 607, "ext": "js", "max_stars_repo_path": "imports/api/ga-models/examples.js", "max_stars_repo_name": "DesignAtLarge/gut-instinct", "max_stars_repo_stars_event_min_datetime": "2020-02-10T18:31:35.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-14T06:23:08.000Z", "max_issues_repo_path": "imports/api/ga-models/examples.js", "max_issues_repo_name": "DesignAtLarge/gut-instinct", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "imports/api/ga-models/examples.js", "max_forks_repo_name": "DesignAtLarge/gut-instinct", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.6785714286, "max_line_length": 69, "alphanum_fraction": 0.5650741351}
import {
    Meteor
} from 'meteor/meteor';

export const Examples = new Mongo.Collection('ga_examples');

Meteor.methods({
    'galileo.examples.getExamples': function(currentParentTemplate) {
        return Examples.find({
            status: 1,
            parent_template: currentParentTemplate
        }).fetch();
    }
});


function generateExampleObject(mendelCode) {
    return {
        "mendel_code": mendelCode,
        "parent_template": "",
        "stage_id": "0-0",
        "versions": [{
            "create_data_time": new Date()
        }],
        "status": 1,
        "data": ""
    }
}