You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
<p>To get a list of all your collections, you can use the `listCollections` command. To successfully view the list, make sure your API key is granted with the scope "collections.read".</p>
<p>To get more information on a particular collection, you can make use of the `getCollection` command and pass in the `collectionId`. To successfully fetch the collection, make sure your API key is granted with the scope "collections.read".</p>
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
553
-
.setProject('5df5acd0d48c2') // Your project ID
554
-
;
551
+
const client = new Client();
552
+
553
+
client
554
+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1')
555
+
.setProject('[PROJECT_ID]');
555
556
556
-
let promise = sdk.functions.createExecution('[FUNCTION_ID]');
557
+
const databases = new Databases(client, '[DATABASE_ID]');
558
+
559
+
let promise = functions.createExecution('[FUNCTION_ID]');
557
560
558
561
promise.then(function (response) {
559
562
console.log(response); // Success
@@ -650,7 +653,7 @@ class MainActivity : AppCompatActivity() {
650
653
651
654
<p>When triggering a Cloud Function execution from the client, your users will be limited to a specific amount of execution per minute to make sure your Appwrite server is not being abused. The default limit is 60 calls per 1 minute. You can edit this limit using the server <a href="/docs/environment-variables#functions">environment variables</a>.</p>
652
655
653
-
<p>The response size of a Cloud Function is limited to 1MB. Reponses larger than 1MB should be handled using Appwrite's Database or Storage service.</p>
656
+
<p>The response size of a Cloud Function is limited to 1MB. Reponses larger than 1MB should be handled using Appwrite's Databases or Storage service.</p>
@@ -685,7 +688,7 @@ class MainActivity : AppCompatActivity() {
685
688
686
689
<p>Appwrite provides multiple code runtimes to execute your custom functions. Each runtime uses a Docker image tied to a specific language version to provide a safe, isolated playground to run your team's code.</p>
687
690
688
-
<p>Below is a list of supported Cloud Functions runtimes. The Appwrite team continually adds support for new runtimes. You can easily change which runtimes your Appwrite setup supports by editing your server <a href="/docs/environment-variables#functions">environment variables</a>.</p>
691
+
<p>Below is a list of supported Cloud Functions runtimes. The Appwrite team continually adds support for new runtimes.</p>
@@ -708,6 +711,8 @@ class MainActivity : AppCompatActivity() {
708
711
</tbody>
709
712
</table>
710
713
714
+
<p>By default, the following runtimes are enabled: "node-16.0, php-8.0, python-3.9, ruby-3.0". To enable or disable runtimes, you can edit the <span class="tag">_APP_FUNCTIONS_RUNTIMES</span> <a href="/docs/functions#environmentVariables">environment variable</a>.</p>
<p>Environment variables supplied by Appwrite in addition to your own defined environment variables that you can access from your function code. These variables give you information about your execution runtime environment.</p>
@@ -744,6 +749,12 @@ class MainActivity : AppCompatActivity() {
744
749
</td>
745
750
<td>Either 'event' when triggered by one of the selected scopes, 'http' when triggered by an HTTP request or the Appwrite Console, or 'schedule' when triggered by the cron schedule.</td>
746
751
</tr>
752
+
<tr>
753
+
<td>
754
+
_APP_FUNCTIONS_RUNTIMES
755
+
</td>
756
+
<td>Enables function runtimes. Pass a list of runtime names separated by a comma, for example "node-16.0,php-8.0,python-3.9,ruby-3.0".</td>
Copy file name to clipboardExpand all lines: app/views/docs/permissions.phtml
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -112,13 +112,17 @@
112
112
<p>In the following example, we are creating a document that can be read by everyone and only be edited, or deleted by a user with a UID <span class="tag">user:5c1f88b42259e</span>.</p>
<p>In the following example, we are creating a document that can be read-only by members of <span class="tag">team:5c1f88b87435e</span> and can only be edited, or deleted by members of the same team that possesses the role <span class="tag">owner</span>.</p>
0 commit comments