Edits history of script submission #331 for ' Get Collection (appwrite)'

  • deno
    import { Client, Databases } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Appwrite = {
      endpoint: string;
      project: string;
      key: string;
      self_signed: boolean;
    };
    export async function main(
      auth: Appwrite,
      database_id: string,
      collection_id: string,
    ) {
      const client = new Client()
        .setEndpoint(auth.endpoint)
        .setProject(auth.project)
        .setKey(auth.key);
      const db = new Databases(client);
    
      return await db.getCollection(database_id, collection_id);
    }
    

    Submitted by hugo697 393 days ago

  • deno
    import { Client, Databases } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Appwrite = {
      endpoint: string;
      project: string;
      key: string;
      self_signed: boolean;
    };
    export async function main(
      auth: Appwrite,
      database_id: string,
      collection_id: string,
    ) {
      const client = new Client()
        .setEndpoint(auth.endpoint)
        .setProject(auth.project)
        .setKey(auth.key);
      const db = new Databases(client);
    
      return await db.getCollection(database_id, collection_id);
    }
    

    Submitted by admin 1026 days ago

  • deno
    import { Client, Databases } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Appwrite = {
      endpoint: string;
      project: string;
      key: string;
      self_signed: boolean;
    };
    export async function main(
      auth: Appwrite,
      database_id: string,
      collection_id: string
    ) {
      const client = new Client()
        .setEndpoint(auth.endpoint)
        .setProject(auth.project)
        .setKey(auth.key)
      const db = new Databases(client);
    
      return await db.getCollection(database_id, collection_id)
    }
    

    Submitted by admin 1029 days ago

  • deno
    import { Resource } from "https://deno.land/x/[email protected]/mod.ts"
    import { Client, Databases } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      auth: Resource<'appwrite'>,
      database_id: string,
      collection_id: string
    ) {
      const client = new Client()
        .setEndpoint(auth.endpoint)
        .setProject(auth.project)
        .setKey(auth.key)
      const db = new Databases(client);
    
      return await db.getCollection(database_id, collection_id)
    }
    

    Submitted by adam186 1144 days ago