Skip to content

Instantly share code, notes, and snippets.

@gngeorgiev
Last active November 24, 2017 19:03
Show Gist options
  • Save gngeorgiev/9d2eae5d5cce0ecbb6396bc53734ce9c to your computer and use it in GitHub Desktop.
Save gngeorgiev/9d2eae5d5cce0ecbb6396bc53734ce9c to your computer and use it in GitHub Desktop.
sashido-parse-server-cloud-code.js
//cloud function named "findMovie"
Parse.Cloud.define('findMovie', (request, response) => {
const query = new Parse.Query('Movies');
query.equalTo('title', request.params.title);
query.first()
.then(movie => response.success(movie))
.catch(err => response.error(err));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment