Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/docs/tutorials/react/step-3/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Only one instance of the `Client()` class should be created per app.
Add the following code to it, replacing `<YOUR_PROJECT_ID>` with your project ID.

```js
import { Client } from "appwrite";
import { Client, Databases, Account } from "appwrite";

const client = new Client();
client
.setEndpoint("https://cloud.appwrite.io/v1")
.setProject("<YOUR_PROJECT_ID>"); // Replace with your project ID

export const account = new Account(client);
export const database = new Database(client);
export const database = new Databases(client);
```
4 changes: 2 additions & 2 deletions src/routes/docs/tutorials/sveltekit/step-3/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ Only one instance of the `Client()` class should be created per app.
Add the following code to it, replacing `<YOUR_PROJECT_ID>` with your project ID.

```js
import { Client } from "appwrite";
import { Client, Databases, Account } from "appwrite";

const client = new Client();
client
.setEndpoint("https://cloud.appwrite.io/v1")
.setProject("<YOUR_PROJECT_ID>"); // Replace with your project ID

export const account = new Account(client);
export const database = new Database(client);
export const database = new Databases(client);
```
4 changes: 2 additions & 2 deletions src/routes/docs/tutorials/vue/step-3/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ Only one instance of the `Client()` class should be created per app.
Add the following code to it, replacing `<YOUR_PROJECT_ID>` with your project ID.

```js
import { Client } from "appwrite";
import { Client, Databases, Account } from "appwrite";

const client = new Client();
client
.setEndpoint("https://cloud.appwrite.io/v1")
.setProject("<YOUR_PROJECT_ID>"); // Replace with your project ID

export const account = new Account(client);
export const database = new Database(client);
export const database = new Databases(client);
```