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],
        }),
    };
};
