Skip to content

Instantly share code, notes, and snippets.

@ndhoule
Created February 22, 2014 02:25
Show Gist options
  • Save ndhoule/9147704 to your computer and use it in GitHub Desktop.
Save ndhoule/9147704 to your computer and use it in GitHub Desktop.
/**
* Assignment.js
*/
module.exports = {
attributes: {
users: {
collection: 'user',
via: 'assignments',
dominant: true
}
}
};
/**
* User.js
*/
module.exports = {
attributes: {
assignments: {
collection: 'assignment',
via: 'users'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment