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

@Injectable()
export class CountryCodeService {

  constructor(private readonly connection: DataSource) { }
  async findAll() {
    const getCountryCode = await this.connection.query(`select * from countries`)
    return getCountryCode;
  }

}
