Skip to content

Instantly share code, notes, and snippets.

@mokolodi1
Created January 28, 2016 04:32
Show Gist options
  • Save mokolodi1/780ab997dd859a01ca34 to your computer and use it in GitHub Desktop.
Save mokolodi1/780ab997dd859a01ca34 to your computer and use it in GitHub Desktop.
SampleGroups = new Meteor.Collection("sample_groups");
var sampleSchema = new SimpleSchema({
study_label: { type: String },
sample_label: { type: String },
patient_label: { type: String, optional: true },
});
SampleGroups.attachSchema(new SimpleSchema({
user_id: { type: String },
collaborations: { type: [String] },
sample_group_label: { type: String },
sample_group_version: { type: Number, min: 1 },
description: { type: String },
samples: { type: [sampleSchema] }
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment