Reputation: 1000
I am using these javascript libraries in my Parse cloud code.
var request = require('request');
var fs = require('fs');
var Twit = require('twit');
The code will not compile unless I have these installed on the parse server. I am still using the parse server hosted by parse. How can I install these libraries in the parse server. Thanks in advance.
Upvotes: 0
Views: 456
Reputation: 2788
in parse.com service you cannot add your own libraries to cloud code. If you want to integrate with http api you can use Parse.Cloud.httpRequest
In parse-server its totally different because there you have the freedom to add any library that you want. In order to add a new library to parse server cloud code you need to do the following:
That's it.
Upvotes: 2