Skip to content

Instantly share code, notes, and snippets.

@lukejagodzinski
Last active January 5, 2016 11:54
Show Gist options
  • Save lukejagodzinski/42725239fe89920270ef to your computer and use it in GitHub Desktop.
Save lukejagodzinski/42725239fe89920270ef to your computer and use it in GitHub Desktop.
Article: Sorting with Relations in Meteor
Users = new Mongo.Collection('users');
User = Astro.Class({
name: 'User',
collection: Users,
fields: {
name: 'string'
}
});
Posts = new Mongo.Collection('posts');
Post = Astro.Class({
name: 'Post',
collection: Posts,
fields: {
title: 'string',
userId: 'string'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment