import { Injectable } from '@nestjs/common';
import { DataSource } from 'typeorm';

@Injectable()
export class RolesService {
  constructor( private readonly connection: DataSource
  ) {}

async  findAll() {
    const getRoles = await this.connection.query(`select * from roles`)
    return getRoles;
  }


}
