1
0
Fork 0
mirror of synced 2024-09-19 02:48:02 +12:00
appwrite/docs/examples/0.8.x/console-web/examples/database/get-collection.md
2021-05-19 17:26:06 +03:00

350 B

let sdk = new Appwrite();

sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ;

let promise = sdk.database.getCollection('[COLLECTION_ID]');

promise.then(function (response) { console.log(response); // Success }, function (error) { console.log(error); // Failure });