async connectDatabase()

in backend/src/services/databaseService.js [138:153]


    async connectDatabase(connectionInfo) {
        let graphRepository = this._graphRepository;
        if (graphRepository == null) {
            this._graphRepository = new GraphRepository(connectionInfo);
            graphRepository = this._graphRepository;
        }

        try {
            let client = await graphRepository.connect();
            client.release();
        } catch (e) {
            this._graphRepository = null;
            throw e;
        }
        return true;
    }