query listVendor @auth(level: USER) {
  vendors {
    id
    vendorNumber
    legalName
    region
    platformType
    primaryContactEmail
    approvalStatus
    isActive
  }
}

query getVendorById(
  $id: UUID!
) @auth(level: USER) {
  vendor(id: $id) {
    id
    vendorNumber
    legalName
    region
    platformType
    primaryContactEmail
    approvalStatus
    isActive
  }
}

query filterVendors(
  $region: VendorRegion,
  $approvalStatus: VendorApprovalStatus,
  $isActive: Boolean,
  $vendorNumber:String,
  $primaryContactEmail:String,
  $legalName: String,
  $platformType: VendorPlatformType
) @auth(level: USER) {
  vendors(where:{
    region: { eq: $region }
    approvalStatus: { eq: $approvalStatus }
    isActive: { eq: $isActive }
    vendorNumber: { eq: $vendorNumber }
    primaryContactEmail: { eq: $primaryContactEmail }
    legalName: { eq: $legalName }
    platformType: { eq: $platformType }

  }) {
    id
    vendorNumber
    legalName
    region
    platformType
    primaryContactEmail
    approvalStatus
    isActive
  }
}