UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. It provides a suite of utilities and helper functions that facilitate data manipulation, schema management, and seamless integrati

10 lines (9 loc) 281 B
import { Client } from "appwrite"; export const getAppwriteClient = (endpoint, project, sessionKey) => { const client = new Client(); client.setEndpoint(endpoint).setProject(project); if (sessionKey) { client.setSession(sessionKey); } return client; };