Skip to content

Instantly share code, notes, and snippets.

@gngeorgiev
Last active November 24, 2017 18:51
Show Gist options
  • Save gngeorgiev/33573a3c60ca17820c26d2492df7f7b6 to your computer and use it in GitHub Desktop.
Save gngeorgiev/33573a3c60ca17820c26d2492df7f7b6 to your computer and use it in GitHub Desktop.
sashido-parse-server-relations.js
var Post = Parse.Object.extend('Post');
var myComment = new Comment();
myComment.set('content', 'Let\'s do Sushirrito.');
myComment.set('post', new Post());
myComment.save();
var post = fetchedComment.get('parent');
post.fetch().then(...);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment