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

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

  findAll() {
    const getBloodGroup = this.connection.query(`select id ,name from blood_bank_products where is_blood_group = 1`)
    return getBloodGroup;
  }

}
