-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Hi, can anyone help please? I'm try to integrate geospatial search together with filtering object keys containing null values and I only need to find all records that are 'verified'. Can someone point me into the right direction? The following code I have written seems to throw an error:
async searchNearby(longitude: number, latitude: number, radius: number = 10) {
try {
// Perform geospatial search
const results = await branchesRepository.search()
.where("verified_at").not.eq(null)
.and('location')
.inRadius(
circle => circle
.longitude(longitude)
.latitude(latitude)
.radius(radius)
.kilometers
)
.return.all()
return results;
} catch (e) {
console.log(e);
}
}
Metadata
Metadata
Assignees
Labels
No labels