@aacassandra/parse-cloud-code 中文文档教程
Parse Cloud Code
如果您正在使用此库,请确保 @aacassandra/parse-lib 已安装在您的项目
Usage
上 在您的解析服务器上,你必须安装这个插件:
npm i @aacassandra@parse-cloud-code
接下来,在你的云代码文件上,例如我的云代码文件在 ./cloud/main.js 中
粘贴这段代码你项目中的 main.js 文件
var ParseCloud = require("@aacassandra/parse-cloud-code");
Parse.Cloud.define("cloud", async request => {
return new Promise(resolve => {
ParseCloud(Parse, request, callback => {
resolve(callback);
});
});
});
Example Call Function
,不要忘记安装 @aacassandra/parse-lib 和
export { ParseCloudUpdateUser, ParseCloudUpdate } from '@aacassandra/parse-lib'
and follow function code suggestion (vscode recommended) for more available parameter
Parse Cloud Code
If you are using this library, make sure the @aacassandra/parse-lib has installed on your project
Usage
On your parse server, you must install this plugin:
npm i @aacassandra@parse-cloud-code
next, on your cloud code file, for example my cloud code file available in ./cloud/main.js
paste this code in your main.js file
var ParseCloud = require("@aacassandra/parse-cloud-code");
Parse.Cloud.define("cloud", async request => {
return new Promise(resolve => {
ParseCloud(Parse, request, callback => {
resolve(callback);
});
});
});
Example Call Function
on your project, don't forget to installing @aacassandra/parse-lib and
export { ParseCloudUpdateUser, ParseCloudUpdate } from '@aacassandra/parse-lib'
and follow function code suggestion (vscode recommended) for more available parameter