Back

[SOLVED] Arguments to provide code and permissions when creating functions via the Server SDK?

  • 0
  • Self Hosted
saricden
7 Jun, 2023, 08:41

Using the Node Server SDK, which arguments are used to provide the permissions as well as pass the function code when calling the Functions.create() method?

TL;DR
You need to select "Node.js SDK" in the dropdown at the top menu. Here is the documentation link: https://appwrite.io/docs/server/functions?sdk=nodejs-default#functionsCreate. The `execute` function in the Node Server SDK is used to provide the permissions and pass the function code when calling the `Functions.create()` method.
Bouahaza
7 Jun, 2023, 10:59

On execute params

saricden
7 Jun, 2023, 11:04

Okay thanks @Bouahaza is this documented anywhere?

Bouahaza
7 Jun, 2023, 11:05
saricden
7 Jun, 2023, 11:43

Ohhhhh I wasn't selecting "Node.js SDK" in the dropdown at the top!! <:facepalm:580448784119758850>

saricden
7 Jun, 2023, 11:43

Thank you @Bouahaza

saricden
7 Jun, 2023, 11:43

[Resolved] Arguments to provide code and permissions when creating functions via the Server SDK?

Drake
7 Jun, 2023, 23:36

[SOLVED] Arguments to provide code and permissions when creating functions via the Server SDK?

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