in backend/src/services/databaseService.js [100:113]
async getGraphLabelCount(labelName, labelKind) {
let graphRepository = this._graphRepository;
let query = null;
if (labelKind === 'v') {
query = util.format(getQuery('label_count_vertex'), `${this.getConnectionInfo().graph}.${labelName}`);
} else if (labelKind === 'e') {
query = util.format(getQuery('label_count_edge'), `${this.getConnectionInfo().graph}.${labelName}`);
}
let queryResult = await graphRepository.execute(query);
return queryResult.rows;
}