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

@Injectable()
export class CountryCodeService {
  
  constructor(@InjectConnection() private connection: Connection ) {}
 async findAll() {
    const getCountryCode = await this.connection.query(`select * from countries`)

    return getCountryCode;
  }

}
