import { Client, Users } from "https://deno.land/x/appwrite@7.0.0/mod.ts";
/**
* @param queries Array of query strings. Learn more about queries here:
* https://appwrite.io/docs/queries
*
* @param search Search term to filter your list results.
*/
type Appwrite = {
endpoint: string;
project: string;
key: string;
self_signed: boolean;
};
export async function main(
auth: Appwrite,
queries?: string[],
search?: string,
) {
const client = new Client()
.setEndpoint(auth.endpoint)
.setProject(auth.project)
.setKey(auth.key);
const users = new Users(client);
return await users.list(queries, search);
}
Submitted by admin 497 days ago
import { Client, Users } from "https://deno.land/x/appwrite@7.0.0/mod.ts";
/**
* @param queries Array of query strings. Learn more about queries here:
* https://appwrite.io/docs/queries
*
* @param search Search term to filter your list results.
*/
type Appwrite = {
endpoint: string;
project: string;
key: string;
self_signed: boolean;
};
export async function main(
auth: Appwrite,
queries?: string[],
search?: string
) {
const client = new Client()
.setEndpoint(auth.endpoint)
.setProject(auth.project)
.setKey(auth.key)
const users = new Users(client);
return await users.list(queries, search)
}
Submitted by admin 500 days ago
import { Resource } from "https://deno.land/x/windmill@v1.87.0/mod.ts"
import { Client, Users } from "https://deno.land/x/appwrite@7.0.0/mod.ts";
/**
* @param queries Array of query strings. Learn more about queries here:
* https://appwrite.io/docs/queries
*
* @param search Search term to filter your list results.
*/
export async function main(
auth: Resource<'appwrite'>,
queries?: string[],
search?: string
) {
const client = new Client()
.setEndpoint(auth.endpoint)
.setProject(auth.project)
.setKey(auth.key)
const users = new Users(client);
return await users.list(queries, search)
}
Submitted by adam186 615 days ago
import { Resource } from "https://deno.land/x/windmill@v1.87.0/mod.ts"
import { Client, Users } from "https://deno.land/x/appwrite@7.0.0/mod.ts";
export async function main(
auth: Resource<'appwrite'>,
queries?: string[],
search?: string
) {
const client = new Client()
.setEndpoint(auth.endpoint)
.setProject(auth.project)
.setKey(auth.key)
const users = new Users(client);
return await users.list(queries, search)
}
Submitted by adam186 615 days ago
import { Resource } from "https://deno.land/x/windmill@v1.87.0/mod.ts"
import { Client, Users, } from "https://deno.land/x/appwrite@7.0.0/mod.ts";
export async function main(
auth: Resource<'appwrite'>,
queries?: string[],
search?: string
) {
const client = new Client()
.setEndpoint(auth.endpoint)
.setProject(auth.project)
.setKey(auth.key)
const users = new Users(client);
return await users.list(queries, search)
}
Submitted by adam186 615 days ago