Chandresh
Chandresh
Explore posts from servers
DTDrizzle Team
Created by Chandresh on 2/26/2024 in #help
Getting value.map is not a function in conditions.push(inArray(properties.amenities, amenities));
While filtering an table I am using has column ammenities for which we are using an enum array
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
export const AmmenitiesEnum = pgEnum("ammenities", [
"Shopping centres/malls",
"Health care facilities",
"Schools and colleges/universities",
"Parks and Gardens",
"Public Trasnport facilty",
"Fuel Station",
"Other Recreational facilities",
]);
this is the ENUM
amenities: AmmenitiesEnum("ammenites").array(),
amenities: AmmenitiesEnum("ammenites").array(),
this is the schema
1 replies