Back

[Solved] An example of uploading a Appwrite Cloud Function via the server Node.js SDK?

  • 0
  • Self Hosted
  • Functions
saricden
9 Jun, 2023, 14:36

Does anyone have a simple example of how I can create a new function AND pass the code I want it to run?

I'm a bit confused by this because the functions.create() method doesn't seem to have an argument for passing a JS file... Or like, a string of the code or something like that.

TL;DR
User is looking for an example of uploading an Appwrite Cloud Function using the Node.js SDK. They express confusion about how to pass the code to be executed in the function. The issue has been resolved and they found the solution at this link: https://appwrite.io/docs/server/functions?sdk=nodejs-default#functionsCreateDeployment.
saricden
9 Jun, 2023, 14:41

Or is this only possible via the CLI and the Cloud interface?

saricden
9 Jun, 2023, 14:43

Wow nvm I found it

saricden
9 Jun, 2023, 14:43

Marking resolved

saricden
9 Jun, 2023, 14:43

[Solved] An example of uploading a Appwrite Cloud Function via the server Node.js SDK?

omzi
10 Jun, 2023, 13:59

Thanks a lot :)! This helped me out.

saricden
11 Jun, 2023, 07:45

Glad to hear πŸ™‚

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more