Dave Edelhart
08/24/2022, 3:52 AMmodel states {
id String @id
hindexes String[]
administrative_area_level Int
administrative_area_level_1 String
administrative_area_level_2 String
}
If I want to find all states that include a given string in hIndexes, what does the โwhereโ look like?(postgres FWIW)Nurul
08/24/2022, 8:46 AMNurul
08/24/2022, 8:49 AMawait prisma.states.findMany({
where: {
hindexes: {
has: 'search_string',
},
},
});
Vladi Stevanovic
Dave Edelhart
08/29/2022, 7:49 PMNurul
08/30/2022, 5:36 AM