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
can we please change the syntax to create, update, signin, login code snippets in the JS language,
because it is now an older syntax. It will be more convinient if we use async await syntaxes
🎤 Pitch
for example the snippet to singup NOW is
import { Client, Account, ID } from "appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>'); // Your project ID
🔖 Enhancement description
can we please change the syntax to create, update, signin, login code snippets in the JS language,
because it is now an older syntax. It will be more convinient if we use async await syntaxes
🎤 Pitch
for example the snippet to singup NOW is
import { Client, Account, ID } from "appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<PROJECT_ID>'); // Your project ID
const account = new Account(client);
const promise = account.create('[USER_ID]', '[email protected]', '');
promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});
IT CAN BE IMPROVED BY THIS ASYNC SYNTAX INSTEAD OF PROMISES, WHICH HAVE DEMERITS LIKE PROMISE CHAINING
const client = new Client();
const account = new account();
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: