UNPKG

weaviate-client

Version:
17 lines (16 loc) • 493 B
import { backup } from './client.js'; export const backupCollection = (connection, name) => { const handler = backup(connection); return { create: (args) => handler.create({ ...args, includeCollections: [name], }), getCreateStatus: handler.getCreateStatus, getRestoreStatus: handler.getRestoreStatus, restore: (args) => handler.restore({ ...args, includeCollections: [name], }), }; };