Last active
January 5, 2016 11:54
-
-
Save lukejagodzinski/42725239fe89920270ef to your computer and use it in GitHub Desktop.
Article: Sorting with Relations in Meteor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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