search-test/test/get-index.ts
2025-08-09 23:09:01 +08:00

21 lines
425 B
TypeScript

import { client } from './common';
import util from 'node:util';
const getIndex = async () => {
const index = await client.getIndexes({ limit: 3 });
return index;
};
// getIndex().then((result) => {
// console.log(result);
// });
const getTasks = async () => {
const tasks = await client.tasks.getTasks();
return tasks;
};
getTasks().then((result) => {
console.log(util.inspect(result, { depth: null }));
});