Hi,
I getting duplicate rows from query that worked fine always.
It’s happened IOS & android SDK
I ran same query in Backendlesss console and i’ve notice GeoPoint field with query look like unattached but without query it’s look fine.
i’ve attached some screenshots
1.
Query:
stringBuilder = [NSString stringWithFormat:@“categoryId = %i AND distance( %f, %f, gameCoordinates.latitude, gameCoordinates.longitude ) < km(%i) AND matchDate >= ‘%@’”,
catId,[userCurrentLocation.latitude doubleValue],[ userCurrentLocation.longitude doubleValue],distanceInKm, dateMatchRequestedString] ;
DataQueryBuilder *queryBuilder = [[DataQueryBuilder alloc] init];
[queryBuilder setWhereClause:stringBuilder];
/// set related columns
[queryBuilder addRelated:@“gameCoordinates”];
[queryBuilder addRelated:@“venue_ref”];
[queryBuilder addRelated:@“statistics”];
[queryBuilder addRelated:@“home_ref”];
[queryBuilder addRelated:@“visitor_ref”];
// request sorting
NSArray<NSString *> *sortBy = @[@“matchDate”,@“gameCoordinates”];
[queryBuilder setSortBy:sortBy];
// set offset and page size
[queryBuilder setPageSize:20];
[queryBuilder setOffset:offset];
//[queryBuilder prepareNextPage];
// =====Synchronous =====
//3. Execute QUERY : Retrieve game objects for the parameters set in query builder
gameArray = [gameStorage find:queryBuilder];
GeoQueryIssue.pdf (239.79kB)