const objectql = require("@steedos/objectql");

function _makeNewID() {
    return objectql.getDataSource('default').adapter._makeNewID();
}

async function getCollection(name) {
    const adapter = objectql.getDataSource('default').adapter
    await adapter.connect()
    return adapter.collection(name)
}


module.exports = {
    _makeNewID,
    getCollection
}